Re: Feature request: include script file into function body

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Feature request: include script file into function body
Дата
Msg-id 4D47EB12020000250003A0EE@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
Re: Feature request: include script file into function body
Список pgsql-bugs
[Please don't top-post.  Rearranged for clarity.]

Steve White <swhite@aip.de> wrote:
> On  1.02.11, Tom Lane wrote:
>> Steve White <swhite@aip.de> writes:
>>> It would be really nice to have a way to load script (especially
>>> Python and Perl) from a separate file into a function body.
>>
>> This seems like a security hole, ie, you could use it to read any
>> file the backend has access to.

> Isn't the \i command a similar security hole?

That is run by a client program on a client machine.  If that is
what you had in mind, a modification to the CREATE FUNCTION syntax
is probably not the way to go.  Just to throw a hypothetical out
there, were you looking to effectively do a \i inside the string
literal which is the function body, picking up a *client-side* file?

That has its own problems, of course, but I'm just trying to get us
onto the same page.

-Kevin

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

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