From: Joe Conway <mail@joeconway.com>
To: kes-kes@yandex.ru, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #15646: Inconsistent behavior for current_setting/set_config
Date: Wed, 20 Feb 2019 12:01:47 -0500
Message-ID: <d2ac387b-e796-e3ef-10e5-e06fede7c973@joeconway.com> (raw)
In-Reply-To: <15646-0d3caee9f6266f60@postgresql.org>
References: <15646-0d3caee9f6266f60@postgresql.org>
On 2/20/19 11:10 AM, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 15646
> Logged by: Eugen Konkov
> Email address: kes-kes@yandex.ru
> PostgreSQL version: 10.4
> Operating system: (Debian 10.4-2.pgdg90+1)
> Description:
>
> Hi.
>
> [documentation](https://www.postgresql.org/docs/11/functions-admin.html#FUNCTIONS-ADMIN-SET)
> describes that:
>
>>set_config sets the parameter setting_name to new_value. If is_local is
> true, the new value will only apply to the current transaction.
>
> Thus if I rollback transaction original value should be available.
>
> 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.
Joe
--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: mail@joeconway.com, noreply@postgresql.org
Subject: Re: BUG #15646: Inconsistent behavior for current_setting/set_config
In-Reply-To: <d2ac387b-e796-e3ef-10e5-e06fede7c973@joeconway.com>
References: <15646-0d3caee9f6266f60@postgresql.org> <d2ac387b-e796-e3ef-10e5-e06fede7c973@joeconway.com>
* 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