| От | Tom Lane |
|---|---|
| Тема | Re: custom variables and PGC_SUSET issue |
| Дата | |
| Msg-id | 26424.1315418111@sss.pgh.pa.us обсуждение |
| Ответ на | custom variables and PGC_SUSET issue (Pavel Stehule <pavel.stehule@gmail.com>) |
| Ответы |
Re: custom variables and PGC_SUSET issue
|
| Список | pgsql-hackers |
Pavel Stehule <pavel.stehule@gmail.com> writes:
> When we have a custom SUSET variable, like plpgsql.variable_conflikt,
> then setting this variable before plpgsql initalisation raises a
> exception, but it raise a exception when some plpgsql function is
> created. Try to execute a attached script - a set statement is ok, but
> CREATE FUNCTION fails.
You can't set a custom SUSET variable in advance of loading the module,
because the system has no way to know it should enforce superuser
restrictions on setting it. For the most part, this is a good reason to
avoid custom SUSET variables.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера