Re: Discarding DISCARD ALL

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Discarding DISCARD ALL
Дата
Msg-id CANP8+jJC+4zTLCsngU3=XzAg+W=Md55Rqepvv+ZMDQ5sZfwfvg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Discarding DISCARD ALL  (James Coleman <jtc331@gmail.com>)
Ответы Re: Discarding DISCARD ALL  (James Coleman <jtc331@gmail.com>)
Список pgsql-hackers
On Wed, 20 Jan 2021 at 14:21, James Coleman <jtc331@gmail.com> wrote:

> An alternative approach that occurred to me while typing this reply: a
> setting in Postgres that would disallow setting session level GUCs
> (i.e., enforce `SET LOCAL` transaction level usage instead) would
> remove a large chunk of our need to set server_reset_query_always=1
> (and more interestingly it'd highlight when broken code gets pushed).
> But even with that, I see some value in the proposed setting since
> there is additional session state beyond GUCs.

With transaction_cleanup=on we could force all SETs to be SET LOCAL.

The point is that if we declare ahead of time that the transaction
will be reset then we can act differently and more easily for various
circumstances, for SETs, for Temp tables and others.

-- 
Simon Riggs                http://www.EnterpriseDB.com/



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

Предыдущее
От: James Coleman
Дата:
Сообщение: Re: Discarding DISCARD ALL
Следующее
От: "Dian M Fay"
Дата:
Сообщение: Re: [HACKERS] [PATCH] Generic type subscripting