Re: BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name |
| Дата | |
| Msg-id | 3702824.1721310918@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name (PG Bug reporting form <noreply@postgresql.org>) |
| Ответы |
Re: BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name
|
| Список | pgsql-bugs |
PG Bug reporting form <noreply@postgresql.org> writes:
> When a connection is initialised, calling `SELECT
> current_setting('hasura.user', 't');`, as expected will return a NULL.
> However if you call `SET "hasura.user" TO DEFAULT;`, this will actually
> intitialise the value to an empty string.
That's a side effect of SET causing such a custom GUC to spring
into existence --- with an empty-string default, because there
is no better value.
> This presents a huge problem,
If you don't like it, don't use custom GUCs. They're not officially
supported --- the only reason this is allowed at all is to allow
setting of an extension's GUCs before the extension is loaded.
See
https://www.postgresql.org/docs/current/runtime-config-custom.html
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера