Re: BUG #15977: Inconsistent behavior in chained transactions - Mailing list pgsql-hackers

From Andres Freund
Subject Re: BUG #15977: Inconsistent behavior in chained transactions
Date
Msg-id 20190905211135.q63scps3pvrc3i43@alap3.anarazel.de
Whole thread Raw
In response to Re: BUG #15977: Inconsistent behavior in chained transactions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: BUG #15977: Inconsistent behavior in chained transactions
List pgsql-hackers
Hi,


On 2019-09-05 14:16:11 +0200, Peter Eisentraut wrote:
> On 2019-09-04 16:49, fn ln wrote:
> > I made another patch for suggested behavior (COMMIT/ROLLBACK AND CHAIN
> > now gives us an error when used in an implicit block).
> 
> I'm content with this patch.

Would need tests.


> Better disable questionable cases now and maybe re-enable them later
> if someone wants to make a case for it.

I do think the fact that COMMIT in multi-statement implicit transaction
has some usecase, is an argument for just implementing it properly...


Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: James Coleman
Date:
Subject: Re: Misleading comment in tuplesort_set_bound
Next
From: Andres Freund
Date:
Subject: Re: AtEOXact_Snapshot timing