Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewVv8-0007j2-3e for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Mar 2018 16:40:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewVv6-0005J0-FV for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Mar 2018 16:40:00 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewVv6-0005Iq-88 for pgsql-hackers@lists.postgresql.org; Thu, 15 Mar 2018 16:40:00 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewVv2-0007ue-E5 for pgsql-hackers@postgresql.org; Thu, 15 Mar 2018 16:39:59 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id D2477ED9; Thu, 15 Mar 2018 12:39:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 15 Mar 2018 12:39:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mrIJkwQ6DxLrtuZM7 T69WpFFuJY0HOYwkXA2UB4ezD4=; b=PJ8SuykARkggOkQdfEnWsjLXrAKfEuUCo /9g0Pc8XF3hujxQP9HK9GS4aQ1ah7p5XlOEtgtr36HOEyjVh4HT1CzLLlMZlxGO5 lmTwDEH3SeWo9doDz9ip4J6f6cAer7Q/pJnxzJ+xatDEWL7VLNmOhq6rPCKVi1EE QLq7qKL7RKjyhrM4d+FjbSEXo7l4/8VfFuaU8cZZaloP5Cf8waj/MYYC9/KtDzrJ w2xewfB+oKKfKKxhquWUcT8FiPbxD8r2wsw5+fuMvGERb1RyEdiDTiT3gt0dlLMF h9hMNLY/j7tfqNnZFmj0he1QH1PHNG1fFaiYadvEXTzzGfEk2Wh8g== X-ME-Sender: Received: from alvin.alvh.no-ip.org (unknown [179.56.29.253]) by mail.messagingengine.com (Postfix) with ESMTPA id EFC9E24108; Thu, 15 Mar 2018 12:39:53 -0400 (EDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 57D53842; Thu, 15 Mar 2018 13:39:52 -0300 (-03) Date: Thu, 15 Mar 2018 13:39:52 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: chained transactions Message-ID: <20180315163952.jqd7rvrxjtdqcd4x@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <28536681-324b-10dc-ade8-ab46f7645a5a@2ndquadrant.com> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut wrote: > Subject: [PATCH v1 1/8] Update function comments > > After a6542a4b6870a019cd952d055d2e7af2da2fe102, some function comments > were misplaced. Fix that. Note typo WarnNoTranactionChain in one comment. The patch leaves CheckTransactionChain with no comment whatsoever; maybe add four words to indicate that it's implementation for the other two? The phrase "Thus this is an inverse for PreventTransactionChain" seems to apply to both functions, maybe it should be in plural? Or perhaps "thus this behavior is the inverse of"? > Subject: [PATCH v1 2/8] Rename TransactionChain functions > > We call this thing a "transaction block" everywhere except in a few > functions, where it is mysteriously called a "transaction chain". In > the SQL standard, a transaction chain is something different. So rename > these functions to match the common terminology. Seems reasonable to me; doesn't change any functionality. > Subject: [PATCH v1 3/8] Simplify parse representation of savepoint commands > > Instead of embedding the savepoint name in a list and then requiring > complex code to unpack it, just add another struct field to store it > directly. Obvious in hindsight. > Subject: [PATCH v1 4/8] Improve savepoint error messages > > Include the savepoint name in the error message and rephrase it a bit to > match common style. A no-brainer. It's a bit disquieting that this changes so few test results ... > Subject: [PATCH v1 5/8] Change transaction state debug strings to match enum > symbols > > In some cases, these were different for no apparent reason, making > debugging unnecessarily mysterious. I guess I was trying to save bytes (573a71a5da70) ... looks OK to me. > From 517bc6d9fefdee9135857d9562f644f2984ace32 Mon Sep 17 00:00:00 2001 > From: Peter Eisentraut > Date: Sun, 18 Feb 2018 09:33:53 -0500 > Subject: [PATCH v1 6/8] Turn transaction_isolation into GUC enum > > XXX no idea why it was done the way it was, but this seems much simpler > and apparently doesn't change any functionality. Enums are recent -- 52a8d4f8f7e2, only 10 years old, and the commit didn't convert all cases, leaving some for later. Funnily enough, default_transaction_isolation was changed afterwards by ad6bf716baa7 but not this one ... I guess "later" is now upon us for it. No opinions (yet?) on the rest of it. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services