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 1i6XmE-0001Ny-9Y for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Sep 2019 10:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i6XmC-00006c-SO for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Sep 2019 10:17:04 +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 1i6XmB-0008Pw-3u for pgsql-hackers@lists.postgresql.org; Sat, 07 Sep 2019 10:17:04 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i6Xm6-0007Gs-01 for pgsql-hackers@lists.postgresql.org; Sat, 07 Sep 2019 10:17:02 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DF3E52BF; Sat, 7 Sep 2019 06:16:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 07 Sep 2019 06:16:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=uK8D8Ok1uthAUWc8yzpKmZfI7BV aiSIxWfoiFldEy3E=; b=diNUKvscrEoFk1tBoAkaFTLIqKdnt3WlAxIlbbCELli ibsfoDsngY1gww1MG3CKmjlHxqYH5X7FcBaRBSIN8A3Z1qCqdOrwe81crRvhvsdO p5qtJO2cdE7j5r4mKkEbFaGJokoIt/vSoeR3ffoWPGvzERozJbOyM9E3DOL/akd8 DL0vjo4JhkzmFa/FgGFi1Agws/y0D2UtpmhgJk7ltDJUv2EI/smLgRM3bk52W7Ow QdhJcRhlayYj0scOCKiu+9jGEbAVoogsx65N1qVILxdJWx/UZOdGN5K2pPQoHCia J1EY1rHWs0ThHAENCMotFt088KvcDpuQw1VIz+XbJ5w== 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=uK8D8O k1uthAUWc8yzpKmZfI7BVaiSIxWfoiFldEy3E=; b=TjBJt4+t/cRfN3e85kSv9Q P3KgAbZOqPvlw6ONKnYGnNbdV+DLWudwV7XUSfTiysmvj7vx+u0+1V0l1RsN4G3i 1WcYvmfrZjIdvbQ6JXkHJ3goKKAfZOqJivLt8dVcIoTkdvqGagIfRzF+dcAKoItM l+x+iPFOQ2aYBd+QBcalXvDyQsMc0SvvNisvCmqZMzX91adwGlvqt5cui4FsuhV/ uYWEP3QqOkx4vrMhBZHDQYuqywjLQI2+gRkM4/tN9PjKNQlO2slcGpniUnF8zQdi 9yCGv6eBcTrrr9yzNxog6mmnVbNzjFUixJDOMv/W9ibdKwPh6KnjbvlkNH9lleeg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepvd drvddtfedrvdeguddriedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshes rghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (dslb-002-203-241-062.002.203.pools.vodafone-ip.de [2.203.241.62]) by mail.messagingengine.com (Postfix) with ESMTPA id 2263280059; Sat, 7 Sep 2019 06:16:54 -0400 (EDT) Date: Sat, 7 Sep 2019 03:16:51 -0700 From: Andres Freund To: Michael Paquier Cc: Peter Eisentraut , fn ln , Fabien COELHO , PostgreSQL Developers Subject: Re: BUG #15977: Inconsistent behavior in chained transactions Message-ID: <20190907101651.pt7yqdqmdb5ba2hm@alap3.anarazel.de> References: <8655dc29-8d50-162d-deaf-fa0329dfed51@2ndquadrant.com> <20190904075305.2gkf5z4r6xwgxcwf@alap3.anarazel.de> <20190905211135.q63scps3pvrc3i43@alap3.anarazel.de> <20190906075415.GA31979@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906075415.GA31979@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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