Re: Statement-level rollback - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Statement-level rollback
Date
Msg-id 20181208205503.sw3ohupigf4uznwy@alvherre.pgsql
Whole thread Raw
In response to Re: Statement-level rollback  (Andres Freund <andres@anarazel.de>)
Responses Re: Statement-level rollback
List pgsql-hackers
On 2018-Dec-08, Andres Freund wrote:

> On 2018-12-08 17:10:27 -0300, Alvaro Herrera wrote:

> > 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.

Hmm, true.

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

Not yet, but I'll give it a think next week.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Statement-level rollback
Next
From: Michael Paquier
Date:
Subject: Re: pg_partition_tree crashes for a non-defined relation