我正在尝试在我从 OSX Mavericks 上的 Enterprise DB 下载的 Postgres 9.3 包上安装 plperl。-- 每次我发出
create language plperl
我明白了
postgres-# ;
The connection to the server was lost. Attempting reset: Failed.
!>
编辑:日志文件显示
2014-01-02 14:08:50 CST LOG: server process (PID 4843) was terminated by signal 11: Segmentation fault
2014-01-02 14:08:50 CST DETAIL: Failed process was running: CREATE EXTENSION IF NOT EXISTS plperl WITH SCHEMA pg_catalog;
2014-01-02 14:08:50 CST LOG: terminating any other active server processes
2014-01-02 14:08:50 CST WARNING: terminating connection because of crash of another server process
2014-01-02 14:08:50 CST DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2014-01-02 14:08:50 CST HINT: In a moment you should be able to reconnect to the database and repeat your command.
2014-01-02 14:08:50 CST WARNING: terminating connection because of crash of another server process
2014-01-02 14:08:50 CST DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2014-01-02 14:08:50 CST HINT: In a moment you should be able to reconnect to the database and repeat your command.
我隐约记得不得不在 9.2 上安装 activeperl 库,但我想也许这里有人知道在 OSX 上启动和运行 plperl 的最佳方法。
很遗憾,但我真的不需要 plperl,除了 perl 具有 sprintf 函数的最佳实现(使用一些更高级的格式化选项),但我离题了。