Re: Feature request: include script file into function body

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Feature request: include script file into function body
Дата
Msg-id 4D480622020000250003A10C@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Feature request: include script file into function body  (Steve White <swhite@aip.de>)
Ответы Re: Feature request: include script file into function body
Список pgsql-bugs
Steve White <swhite@aip.de> wrote:

> I *DO NOT MEAN* that a query should run about grabbing files off
> the server, or wherever.
>
> I meant something like the replacement that happens with the \i
> command in loading SQL, and under similar circumstances, except
> that somehow non-SQL code is loadad in a function body.

Maybe some option for the \i command?  \iq (for input quoted) with
automatic $$ quoting around what is read?

That way you could do something like:

CREATE FUNCTION yadda_yadda() returns text language plpythonu as
\iq yadda_yadda.py
;

-Kevin

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

Предыдущее
От: Steve White
Дата:
Сообщение: Re: Feature request: include script file into function body (better syntax)
Следующее
От: Gary Doades
Дата:
Сообщение: Re: Feature request: include script file into function body