Re: Statement-level rollback

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Statement-level rollback
Дата
Msg-id 20181208203104.chthyjvkf5mu3u7l@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Statement-level rollback  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Statement-level rollback  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Hi,

On 2018-12-08 17:10:27 -0300, Alvaro Herrera wrote:
> On 2018-Dec-07, Andres Freund wrote:
> 
> > I think it could partially be addressed by not allowing to set it on the
> > commandline, server config, etc. So the user would have to set it on a
> > per-connection basis, potentially via the connection string.
> 
> This is what patch 0001 does -- it's only allowed in the connection
> string, or on ALTER USER / ALTER DATABASE.  Setting it in
> postgresql.conf is forbidden, as well as changing from transaction to
> statement in SET (the opposite is allowed, though.)

I don't think allowing to set it on a per-user basis is acceptable
either, it still leaves the client in a state where they'll potentially
be confused about it.

Do you have a proposal to address the issue that this makes it just
about impossible to write UDFs in a safe way?

Greetings,

Andres Freund


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Statement-level rollback
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Statement-level rollback