Re: [BUGS] BUG #14877: DISCARD ALL incorrectly resets user parameters

Поиск
Список
Период
Сортировка
От Fabrízio de Royes Mello
Тема Re: [BUGS] BUG #14877: DISCARD ALL incorrectly resets user parameters
Дата
Msg-id CAFcNs+ra_gJW5iSNsUXR9t3DNS0R2noamqMFEbcNda93T7h-yg@mail.gmail.com
обсуждение исходный текст
Ответ на [BUGS] BUG #14877: DISCARD ALL incorrectly resets user parameters  (dmitriy@riabov.info)
Ответы Re: [BUGS] BUG #14877: DISCARD ALL incorrectly resets user parameters
Список pgsql-bugs

On Fri, Oct 27, 2017 at 11:21 AM, <dmitriy@riabov.info> wrote:
>
> The following bug has been logged on the website:
>
> Bug reference:      14877
> Logged by:          Dmitriy Riabov
> Email address:      dmitriy@riabov.info
> PostgreSQL version: 10.0
> Operating system:   Debian 8
> Description:
>
> Affected versions: 9.4 - 10. Versions prior to 9.4 haven't been tested.
>
> How to reproduce the bug:
>
> # psql testdb
>
> testdb=# select current_setting('var.test');
> ERROR:  unrecognized configuration parameter "var.test"
> testdb=# select set_config('var.test', '123', false);
>  set_config
> ------------
>  123
> (1 row)
>
> testdb=# select current_setting('var.test');
>  current_setting
> -----------------
>  123
> (1 row)
>
> testdb=# discard all;
> DISCARD ALL
> testdb=# select current_setting('var.test');
>  current_setting
> -----------------
>
> (1 row)
>

Why do you think this wrong? This is the default behavior of DISCARD ALL since when 8.3 introduced it.

Regards,

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Timbira: http://www.timbira.com.br
>> Blog: http://fabriziomello.github.io
>> Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello
>> Github: http://github.com/fabriziomello

В списке pgsql-bugs по дате отправления:

Предыдущее
От: dmitriy@riabov.info
Дата:
Сообщение: [BUGS] BUG #14877: DISCARD ALL incorrectly resets user parameters
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [BUGS] BUG #14877: DISCARD ALL incorrectly resets user parameters