Re: Feature request: include script file into function body (better syntax)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Feature request: include script file into function body (better syntax)
Дата
Msg-id 1161.1296588901@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Feature request: include script file into function body (better syntax)  (Steve White <swhite@aip.de>)
Ответы Re: Feature request: include script file into function body (better syntax)  (Steve White <swhite@aip.de>)
Список pgsql-bugs
Steve White <swhite@aip.de> writes:
> Try this instead:

> ================================================
> CREATE OR REPLACE FUNCTION
>         myfunc( ... )
> RETURNS VOID AS '#PGSQL_IMPORT filename' LANGUAGE PLPYTHONU;
> ================================================

I think having psql decide that string literals mean something other
than their face value is Right Out --- it would bite you on the rear
just when you least expect it.  And the notion of the behavior being
language-dependent is right out to the fourth power.  But see my
alternative proposal to Kevin just now.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Feature request: include script file into function body
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Feature request: include script file into function body