Re: Feature request: include script file into function body
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Feature request: include script file into function body |
| Дата | |
| Msg-id | 590.1296587324@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Feature request: include script file into function body ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Ответы |
Re: Feature request: include script file into function
body
|
| Список | pgsql-bugs |
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> It seems to me that something which let you pull the body of a
> script file into the statement on the *client* side of the
> connection, before sending the CREATE FUNCTION statement to the
> server would not only be a lot more secure (you could only read
> files that the OS would let your login read anyway), but would be
> more *useful*.
The usual procedure is to put the whole CREATE FUNCTION statement
into a file, which you can then send with \i. I'm not quite seeing
the point of having just the body in a file? It's not like the body
is typically useful to run as standalone code.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера