Re: Where art thou, plpython2.dll? (EDB installer)

From: Daniel Lenski <dlenski(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Where art thou, plpython2.dll? (EDB installer)
Date: 2014-09-23 18:54:09
Message-ID: CAOw_LSGssKTZ8=UO3j7HM_rvtPO81DGa4gs1s16XA9OkDY4Xng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 23, 2014 at 11:05 AM, Nick Guenther <nguenthe(at)uwaterloo(dot)ca>
wrote:
> I've struggled with plpython on OpenBSD 5.5-amd64 as well. Could it be
related? Maybe the amount of dependencies python pulls in gets overwhelming
and things break?
>
>
> $ psql -h localhost -d postgres
> psql (9.3.2)
> Type "help" for help.
> postgres=# create language plpython2u;
> ERROR: could not load library "/usr/local/lib/postgresql/plpython2.so":
dlopen (/usr/local/lib/postgresql/plpython2.so) failed: Cannot load
specified object
> postgres=# create language plperl;
> CREATE LANGUAGE
> postgres=#
>
>
> This is strange because /usr/local/lib/postgresql/plpython2.so exists.
Also, perl loads fine.
> $ ls -l /usr/local/lib/postgresql/pl*
> -rwxr-xr-x 1 root bin 100948 Jul 31 02:05
/usr/local/lib/postgresql/plperl.so
> -rwxr-xr-x 1 root bin 181287 Jul 31 02:05
/usr/local/lib/postgresql/plpgsql.so
> -rwxr-xr-x 1 root bin 137951 Mar 4 12:45
/usr/local/lib/postgresql/plpython2.so
>

Hmmm... I doubt that this is directly related to the Windows issue, where
the shared library simply doesn't exist in the standard installation.

Can anyone confirm whether the plpython2 omission from the Windows builds
was intentional? If it is intentional, then a few simple changes would make
it easier for users like me to figure out that it's missing, not just
misconfigured:
* Make plpythonu point to plpython3u, rather than plpython2u, by default
* Omit plpython2u from the pg_pltemplate catalog, so that this:
CREATE LANGUAGE plpython2u
... would give a more helpful error message:
ERROR: unsupported language "plpython2u"

-Dan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Emi Lu 2014-09-23 19:35:09 which Update quicker
Previous Message Adrian Klaver 2014-09-23 18:27:29 Re: Where art thou, plpython2.dll? (EDB installer)