On 12/16/2012 01:37 AM, Peter Eisentraut wrote:
So in practice this might look like this:

CREATE FUNCTION foo(...) ... LANGUAGE plpythonu
AS $$
import x
import y
$$,
$$
real code here
$$;



Bleah.

It seems obscure to say the least.

Why not have something along the lines of plperl's on_init setting to load libraries? Among other things that would give you the advantage of being able to preload them, and also of some consistency among PLs.

cheers

andrew


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to