From: Fabien COELHO <coelho@cri.ensmp.fr>
To: fn ln <emuser20140816@gmail.com>
Cc: PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: BUG #15977: Inconsistent behavior in chained transactions
Date: Thu, 29 Aug 2019 15:01:11 +0200 (CEST)
Message-ID: <alpine.DEB.2.21.1908291440490.28828@lancre> (raw)
In-Reply-To: <CA+99BHrbigiWkM5Sss3fia24t=UdXHgsCLsNjotPsbsCV7ZcHA@mail.gmail.com>
References: <15977-f4eb49ebdcacc65b@postgresql.org>
<alpine.DEB.2.21.1908251101540.9896@lancre>
<CA+99BHqXfKP=vbX4DmuGY3O8NP+nv-hu-fKLV6JgYj7-COE3CQ@mail.gmail.com>
<alpine.DEB.2.21.1908290815110.28828@lancre>
<CA+99BHrULLrx-g+Ga68F7bzNa9mQR9ezBzHsDihsQ+0=Q0LiCA@mail.gmail.com>
<alpine.DEB.2.21.1908291406200.28828@lancre>
<CA+99BHrbigiWkM5Sss3fia24t=UdXHgsCLsNjotPsbsCV7ZcHA@mail.gmail.com>
Hello,
> transaction_read_only must be 'on' because AND CHAIN test sets the
> default_transaction_read_only to 'on'.
> Failure of this test means that the transaction was chained from an
> implicit transaction, which is not our desired behavior. Perhaps you are
> using a wrong binary?
Nope, I blindly assumed that your patch was self contained, but it is not,
and my test did not include the initial fix.
The usual approach is to send self-contained and numbered patches,
eg "chain-fix-1.patch", "chain-fix-2.patch", and so on, unless there are
complex patches designed to be committed in stages.
For the expected result, I was wrongly assuming that "SET TRANSACTION" was
session persistent, which is not the case, there is a "SET SESSION …" for
that. Moreover, the usual transaction default is read-write, so I was a
little surprise. It would help to show the (unusual) current setting
before the test.
I also have registered the patch to the CF app:
https://commitfest.postgresql.org/24/2265/
But I cannot fill in your name, maybe you could register and add it, or it
can be left blank.
--
Fabien.
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: coelho@cri.ensmp.fr, emuser20140816@gmail.com, pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #15977: Inconsistent behavior in chained transactions
In-Reply-To: <alpine.DEB.2.21.1908291440490.28828@lancre>
References: <15977-f4eb49ebdcacc65b@postgresql.org> <alpine.DEB.2.21.1908251101540.9896@lancre> <CA+99BHqXfKP=vbX4DmuGY3O8NP+nv-hu-fKLV6JgYj7-COE3CQ@mail.gmail.com> <alpine.DEB.2.21.1908290815110.28828@lancre> <CA+99BHrULLrx-g+Ga68F7bzNa9mQR9ezBzHsDihsQ+0=Q0LiCA@mail.gmail.com> <alpine.DEB.2.21.1908291406200.28828@lancre> <CA+99BHrbigiWkM5Sss3fia24t=UdXHgsCLsNjotPsbsCV7ZcHA@mail.gmail.com> <alpine.DEB.2.21.1908291440490.28828@lancre>
* 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