Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3K3F-0001e3-Me for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Aug 2019 13:01:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3K3E-0005P5-Bz for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Aug 2019 13:01:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3K3E-0005Fb-01; Thu, 29 Aug 2019 13:01:20 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i3K3A-0004Rm-PA; Thu, 29 Aug 2019 13:01:18 +0000 Received: from smtp-5.mines-paristech.fr (smtp.mines-paristech.fr [77.158.173.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id C66D955E2D; Thu, 29 Aug 2019 15:01:13 +0200 (CEST) Received: from lancre (184.86.8.93.rev.sfr.net [93.8.86.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-5.mines-paristech.fr (Postfix) with ESMTPSA id 6B4BE20090; Thu, 29 Aug 2019 15:01:13 +0200 (CEST) Date: Thu, 29 Aug 2019 15:01:11 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: fn ln cc: PostgreSQL Bugs , PostgreSQL Developers Subject: Re: BUG #15977: Inconsistent behavior in chained transactions In-Reply-To: Message-ID: References: <15977-f4eb49ebdcacc65b@postgresql.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1751311290-1567083290=:28828" Content-ID: X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudeivddgheeiucetufdoteggodetrfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvufgjkfhffgggtgesmhdtreertderjeenucfhrhhomhephfgrsghivghnucevqffgnffjqfcuoegtohgvlhhhohestghrihdrvghnshhmphdrfhhrqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeelfedrkedrkeeirddukeegnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1751311290-1567083290=:28828 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: 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. --8323329-1751311290-1567083290=:28828--