Re: multiple CREATE FUNCTION AS items for PLs

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: multiple CREATE FUNCTION AS items for PLs
Дата
Msg-id 50CE24A6.4070508@dunslane.net
обсуждение исходный текст
Ответ на multiple CREATE FUNCTION AS items for PLs  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: multiple CREATE FUNCTION AS items for PLs
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: multiple CREATE FUNCTION AS items for PLs
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: multiple CREATE FUNCTION AS items for PLs