I am running PostgreSQL 9.3.1 on Ubuntu 12.04.4. I would like to use the plpython language extension, but I get an error when I try to use it:
ERROR: language "plpythonu" does not exist
When I try to create an extension:
CREATE EXTENSION plpythonu
... I get the error: ERROR: could not access file "$libdir/plpython2": No such file or directory
After much searching and digging in the blog posts, I tried installing additional packages and copied all the plpython files from / usr / share / postgresql / 9.1 / extension to / opt / bitnami / postgresql / share / extension, where PostgreSQL seems to be looking for them. This at least led me to see PostgreSQL see the available extensions. When I run:
select name, default_version, installed_version from pg_available_extensions where name like 'plpy*'
I get:
name | default_version | installed_version ------------+-----------------+------------------- plpython2u | 1.0 | plpython3u | 1.0 | plpythonu | 1.0 |
There are still no plpython libraries that I can see in / opt / bitnami / postgresql / lib. Can someone help me go through the remaining steps to extend my work? Thanks in advance!
python postgresql
Paul angelno
source share