Re: multiple CREATE FUNCTION AS items for PLs

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: multiple CREATE FUNCTION AS items for PLs
Date: 2012-12-16 19:44:38
Message-ID: 50CE24A6.4070508@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2012-12-16 20:22:30 Re: multiple CREATE FUNCTION AS items for PLs
Previous Message Hannu Krosing 2012-12-16 19:01:11 Re: multiple CREATE FUNCTION AS items for PLs