postgres plpythonu扩展不存在于/usr/pgsql-9.3/share/extension中

时间:2014-07-08 14:00:50

标签: postgresql

当我尝试使用

启用plythonu
CREATE EXTENSION plpythonu

我收到错误

ERROR:  could not open extension control file "/usr/pgsql-9.3/share/extension/plpythonu.control": No such file or directory

扩展文件夹没有该名称的文件。

是否有下载链接?我怎样才能添加plpythonu?

1 个答案:

答案 0 :(得分:32)

PL / Python尚未安装。在PostgreSQL的大多数Linux软件包中,它都是一个独立的软件包。

如果您在Debian / Ubuntu上使用apt.postgresql.org(PGDG)软件包:

apt-get install postgresql-contrib-9.3 postgresql-plpython-9.3

如果您使用他们的PostgreSQL软件包使用Ubuntu或Debian:

apt-get install postgresql-contrib postgresql-plpython

如果您使用yum.postgresql.org上的PGDG软件包进入Fedora / CentOS / RhEL:

yum install postgresql93-contrib postgresql93-plpython

如果您使用库存套餐在Fedora / CentOS / RHEL上:

yum install postgresql-contrib postgresql-plpython

提供包不是严格要求的,但您也可能也想要它们。