Re: set_config with is_local parameter true escapes transaction boundaries

Поиск
Список
Период
Сортировка
От Jobin Augustine
Тема Re: set_config with is_local parameter true escapes transaction boundaries
Дата
Msg-id CAEpZXff27+1pXf5ngmbDm17Mh9wKrrAwGqpc-c-vA+-o01e=9w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: set_config with is_local parameter true escapes transaction boundaries  (Ruslan Talpa <ruslan.talpa@subzero.cloud>)
Список pgsql-bugs
Yes, The behaviour changes after the parameter are used for the first time. This could be a problem if the connection is reused (pool)
RESET/DISCARD also not bringing back the original behaviour.

--Please test this on a fresh connection
--Check the status before the first transaction
select current_setting('custom.a',true),current_setting('custom.a',true) is null, current_setting('custom.a',true)='';

--First transaction where the parameter is set at the transaction level
BEGIN;
SELECT set_config('custom.a', 'vv', true);
COMMIT;

--Reset
RESET ALL;
DISCARD ALL;

--Check the status after the first transaction
select current_setting('custom.a',true),current_setting('custom.a',true) is null, current_setting('custom.a',true)='';


-Jobin

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

Предыдущее
От: Jeff Laing
Дата:
Сообщение: RE: BUG #17747: Registry entry "Base Directory" is not populated if you only install Command-line tools
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: set_config with is_local parameter true escapes transaction boundaries