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 1i694e-0000Ke-Cz for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Sep 2019 07:54:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i694c-00047q-Sx for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Sep 2019 07:54:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i694c-0003wN-HL for pgsql-hackers@lists.postgresql.org; Fri, 06 Sep 2019 07:54:26 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i694a-0003a3-1l for pgsql-hackers@lists.postgresql.org; Fri, 06 Sep 2019 07:54:25 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A5536220B8; Fri, 6 Sep 2019 03:54:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 06 Sep 2019 03:54:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=66fxYPXUgHgMfAmnTxgyFj5YZiz W4Ueqq53GFC3PBDE=; b=tCBXFKzcOrRdOxoD59pfTwGvBHOrt4pSe0qy7iBm/PV cTd5eBP3zx+llmS5GczrD2JWIQosJYW49GanDmsnjrKgVjnP11DkKY2f3vLIbp2E xsoFaeBqRkv2mV2eoMEecNV2Qt5KV3wXFOJYvFtGzkQKx11UZEEwFuXc1QUoDmxQ ATba/TFdUeJvQ4PTC37LnQS5Aha6YbKjV85yXdx7oU5PVuJiCED+y2W5L0K5OZXf RFFAlyJrwXllY6rOWb2tm5OZYS7MYbgcrscY7sxSzcysxEkaDkhterZNW4kU/4YH sa5oJjCgfSBAIWuIseXWVdM1txEPv6euVkdPIIR+BQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=66fxYP XUgHgMfAmnTxgyFj5YZizW4Ueqq53GFC3PBDE=; b=VV5OT2W3p1zIkQ9eV2qp0a pZTY/rMgF9pD63Td44sBGvlGQtQ81Hv848iJwFpfIviTQ4swYcq5FUp/bg+NUUlx GoXT9FqhJCFf6IG5IQGPrJd4ULnHc65JPLHjpGsIXWKdHREwioAkhghIn+Ewu+uX MmlXhtlj/O7PlzMAaqmDTihC9Gn/NFC1khJPJuKrs0Oadr6UN18irrsz9tq8GOmt zJ6piQfmuLsasg9YJw/Co5UHXe4ouov29x9Y2UdFOXfqYOtoz1PYUgmkLuchZaoP Ca8CnvTukW0+7WGnD19QJq4yQhQqf/CsoH19ueSnSkcSaxpQCjBW8WD4aqOu+9TA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudejkedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepuddukedrvdeguddrvdehtddrudegieenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (mp76f1fa92.ap.nuro.jp [118.241.250.146]) by mail.messagingengine.com (Postfix) with ESMTPA id 46283D60062; Fri, 6 Sep 2019 03:54:18 -0400 (EDT) Date: Fri, 6 Sep 2019 16:54:15 +0900 From: Michael Paquier To: Andres Freund Cc: Peter Eisentraut , fn ln , Fabien COELHO , PostgreSQL Developers Subject: Re: BUG #15977: Inconsistent behavior in chained transactions Message-ID: <20190906075415.GA31979@paquier.xyz> References: <8655dc29-8d50-162d-deaf-fa0329dfed51@2ndquadrant.com> <20190904075305.2gkf5z4r6xwgxcwf@alap3.anarazel.de> <20190905211135.q63scps3pvrc3i43@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <20190905211135.q63scps3pvrc3i43@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Would need tests. The latest patch sends adds coverage for all the new code paths added. Do you have something else in mind? >> Better disable questionable cases now and maybe re-enable them later >> if someone wants to make a case for it. >=20 > 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. Looking at the latest patch, the comment blocks on top of TBLOCK_STARTED and TBLOCK_IMPLICIT_INPROGRESS in EndTransactionBlock() need an update to mention the difference of behavior with chained transactions. And the same comment rework should be done in UserAbortTransactionBlock() for TBLOCK_IMPLICIT_INPROGRESS/TBLOCK_STARTED? -- Michael --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl1yEKcACgkQnvQgOdby QH0ohw//XaOmyPBYAL/S3OX0crAi+pDvuPNnLPCrDkM427zqAZ15HCDz8rYEYljI bSUPEYvBD6Ji+v7yPRw7lDwr8nPPnjiuJuVrL1365FFj1ckOE4GhWjfxmWNEi6Di mCY1HyvC3/3hkV8oKBVQpqk/85QbWfWtiEBEcF5CtFTTvrASQ6rr0vuxWQDEQb4N WdjxuydfCtP1DsQmxTihC38nj+fAt6gaOi86229vgRLAfYODvH4+YPeVS3bWluCz 5YzLZTKOp2PoRG8P34CTJGZbmUN/OHjaiz1A5wSp+iKu5xVBf6T/6+3MGsyJiqfQ wbmOYUkzbgQ3nHAHOKxDEq/ZQeeTcYh7cXhgZFNotE4/SLiTF5GJh3DfLD+t5VrU oeIsi4KEqI+9D2YsG/ky+aTbipVCBZOnDXd54GfiDKi3eRm+KKdYnFdhmMYj4YPO 9brQNAjxSO86RuuWWdHaVe720HDqUlfNyeLM402pfjmjrElbWuTRjGx+32VLNQC9 jXbq2v+DlWVkHx3w3kmJFuS1HM4+5cFIQIXjW428JfJO2Eh2uYN0+PSJkakFGAq+ rAyqJI7Kuydxgwk8CHMC7n1obaxu7XdNSj5chxrIczLlbN31lzC4RefblnBwthR7 my/MtFujrPK2beInPMja7Ylhb1M+jnE2NyWY2HSthpFNkLOTuFk= =6q/o -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--