Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luFQ6-0008OR-J4 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jun 2021 14:24:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luFQ5-0007lA-Dl for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jun 2021 14:24:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luFQ5-0007l1-6L for pgsql-hackers@lists.postgresql.org; Fri, 18 Jun 2021 14:24:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luFPz-0007Nd-5O for pgsql-hackers@lists.postgresql.org; Fri, 18 Jun 2021 14:24:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15IEOKFF1100704; Fri, 18 Jun 2021 10:24:20 -0400 From: Tom Lane To: Julien Rouhaud cc: pgsql-hackers@lists.postgresql.org Subject: Re: Centralizing protective copying of utility statements In-reply-to: <20210617180055.txf7g6tkelk2f2x4@nol> References: <931771.1623893989@sss.pgh.pa.us> <974666.1623943810@sss.pgh.pa.us> <1026052.1623949409@sss.pgh.pa.us> <20210617180055.txf7g6tkelk2f2x4@nol> Comments: In-reply-to Julien Rouhaud message dated "Fri, 18 Jun 2021 02:00:55 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1100702.1624026260.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 18 Jun 2021 10:24:20 -0400 Message-ID: <1100703.1624026260@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Thu, Jun 17, 2021 at 01:03:29PM -0400, Tom Lane wrote: > + * readOnlyTree: treat pstmt's node tree as read-only > Maybe it's because I'm not a native english speaker, or because it's qui= te > late here, but I don't find "treat as read-only" really clear. I don't = have a > concise better wording to suggest. Maybe "if true, pstmt's node tree must not be modified" ? >> Still thinking about which way to fix it in the back branches. > I'm +0.5 for a narrow fix, due to the possibility of unspotted similar p= roblem > vs possibility of performance regression ratio. After sleeping on it another day, I'm inclined to think the same. The key attraction of a centralized fix is that it prevents the possibility of new bugs of the same ilk in newly-added features. Given how long these CREATE/ALTER DOMAIN bugs escaped detection, it's hard to have full confidence that there are no others in the back branches --- but they must be in really lightly-used features. regards, tom lane