| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | haydenwillsim(at)gmail(dot)com |
| Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name |
| Date: | 2024-07-18 13:55:18 |
| Message-ID: | 3702824.1721310918@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
PG Bug reporting form <noreply(at)postgresql(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hayden Sim | 2024-07-19 02:39:09 | Re: BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name |
| Previous Message | David G. Johnston | 2024-07-18 13:53:48 | Re: BUG #18544: Setting local config_parameter to DEFAULT behaves unexpectedly when using period in config name |