From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: kes-kes@yandex.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15646: Inconsistent behavior for current_setting/set_config
Date: Wed, 20 Feb 2019 12:11:15 -0500
Message-ID: <16698.1550682675@sss.pgh.pa.us> (raw)
In-Reply-To: <d2ac387b-e796-e3ef-10e5-e06fede7c973@joeconway.com>
References: <15646-0d3caee9f6266f60@postgresql.org>
<d2ac387b-e796-e3ef-10e5-e06fede7c973@joeconway.com>
Joe Conway <mail@joeconway.com> writes:
> On 2/20/19 11:10 AM, PG Bug reporting form wrote:
>> But current behavior returns empty string instead of NULL (the initial
>> value) after transaction is rolled back. When I restart session, NULL is
>> returned again as it is expected.
> This has been discussed before and dismissed:
> https://www.postgresql.org/message-id/flat/56842412.5000005%40joeconway.com
> Personally I agree it is a bug, but I am not sure you will get much
> support for that position.
The fact that we allow undeclared user-defined GUCs at all is a bug IMO.
We need to find a way to replace that behavior with something whereby
the name and type of a parameter are declared up-front before you can
set it.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, mail@joeconway.com, kes-kes@yandex.ru
Subject: Re: BUG #15646: Inconsistent behavior for current_setting/set_config
In-Reply-To: <16698.1550682675@sss.pgh.pa.us>
References: <15646-0d3caee9f6266f60@postgresql.org> <d2ac387b-e796-e3ef-10e5-e06fede7c973@joeconway.com> <16698.1550682675@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox