From: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, MauMau <maumau307(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Statement-level rollback |
Date: | 2018-06-16 10:26:52 |
Message-ID: | CANP8+j+62e6ub6KM1Lrx7VDiEzyShz5gxexEoVYgMuz+vR7vhQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
On 15 June 2018 at 21:23, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
> I think the main objectionable point is that of making servers behave in
> a way that could lose data, if applications assume that transactions
> behave in the way they do today. I propose that we solve this by
> allowing this feature to be enabled only via one of:
>
> * a PGOPTIONS connection-time option
> * ALTER USER SET (transaction_rollback_scope)
>
> but it can be *disabled* normally via SET. In other words, changing the
> scope from transaction to statement in a running session is forbidden,
> but changing it the other way around is allowed (if app is unsure
> whether env is unsafe, it can set the scope to "transaction" to ensure
> it's safe from that point onwards).
If that allows us to annotate a function with SET
transaction_rollback_scope = whatever
then it works. We probably need to be able to identify code that
will/will not work in the new mode.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Darafei Komяpa Praliaskouski | 2018-06-16 12:56:05 | Re: Postgres 11 release notes |
Previous Message | Tomas Vondra | 2018-06-16 10:24:22 | Re: WAL prefetch |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2018-06-18 20:51:50 | Re: [HACKERS] Statement-level rollback |
Previous Message | Robert Haas | 2018-06-16 04:13:35 | Re: [HACKERS] Statement-level rollback |