From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: fn ln <emuser20140816@gmail.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: BUG #15977: Inconsistent behavior in chained transactions
Date: Sat, 7 Sep 2019 03:16:51 -0700
Message-ID: <20190907101651.pt7yqdqmdb5ba2hm@alap3.anarazel.de> (raw)
In-Reply-To: <20190906075415.GA31979@paquier.xyz>
References: <CA+99BHrbigiWkM5Sss3fia24t=UdXHgsCLsNjotPsbsCV7ZcHA@mail.gmail.com>
<alpine.DEB.2.21.1908291440490.28828@lancre>
<CA+99BHoWDs19t4rLEeifNs4fNp4iHQD=na1TYGn+rpCTWvkMJg@mail.gmail.com>
<alpine.DEB.2.21.1908291654580.28828@lancre>
<8655dc29-8d50-162d-deaf-fa0329dfed51@2ndquadrant.com>
<20190904075305.2gkf5z4r6xwgxcwf@alap3.anarazel.de>
<CA+99BHonbDf1MRzOteoU+MxdrL1xOzOa7uTsy102vy2i-aGRJw@mail.gmail.com>
<d2d5e3fc-cfe8-b7ba-d335-107a32c2b095@2ndquadrant.com>
<20190905211135.q63scps3pvrc3i43@alap3.anarazel.de>
<20190906075415.GA31979@paquier.xyz>
Hi,
On 2019-09-06 16:54:15 +0900, Michael Paquier wrote:
> On Thu, Sep 05, 2019 at 02:11:35PM -0700, Andres Freund wrote:
> > On 2019-09-05 14:16:11 +0200, Peter Eisentraut wrote:
> >> I'm content with this patch.
> >
> > Would need tests.
>
> The latest patch sends adds coverage for all the new code paths
> added. Do you have something else in mind?
Missed them somehow. But I don't think they're quite sufficient. I think
at least we also need tests that test things like multi-statement
exec_simple-query() *with* explicit transactions and chaining.
> >> 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...
>
> Like Peter, I would also keep an ERROR for now, as we could always
> relax that later on.
I mean, I agree it's better to err that way, but it still seems
unnecessary to design things in a way that prevents legit cases, that we
then may have to allow later. Error -> no error is a behavioural change
too, even if obviously less likely to cause problems.
Greetings,
Andres Freund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andres@anarazel.de, michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, emuser20140816@gmail.com, coelho@cri.ensmp.fr, pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #15977: Inconsistent behavior in chained transactions
In-Reply-To: <20190907101651.pt7yqdqmdb5ba2hm@alap3.anarazel.de>
References: <CA+99BHrbigiWkM5Sss3fia24t=UdXHgsCLsNjotPsbsCV7ZcHA@mail.gmail.com> <alpine.DEB.2.21.1908291440490.28828@lancre> <CA+99BHoWDs19t4rLEeifNs4fNp4iHQD=na1TYGn+rpCTWvkMJg@mail.gmail.com> <alpine.DEB.2.21.1908291654580.28828@lancre> <8655dc29-8d50-162d-deaf-fa0329dfed51@2ndquadrant.com> <20190904075305.2gkf5z4r6xwgxcwf@alap3.anarazel.de> <CA+99BHonbDf1MRzOteoU+MxdrL1xOzOa7uTsy102vy2i-aGRJw@mail.gmail.com> <d2d5e3fc-cfe8-b7ba-d335-107a32c2b095@2ndquadrant.com> <20190905211135.q63scps3pvrc3i43@alap3.anarazel.de> <20190906075415.GA31979@paquier.xyz> <20190907101651.pt7yqdqmdb5ba2hm@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox