Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruIDn-004H1f-Vd for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2024 20:37:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ruIDn-00AmkD-35 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2024 20:37:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruIDm-00Amk4-QS for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2024 20:37:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruIDk-0024I8-Gs for pgsql-hackers@postgresql.org; Tue, 09 Apr 2024 20:37:33 +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 439KbVVt3867998; Tue, 9 Apr 2024 16:37:31 -0400 From: Tom Lane To: Alexander Korotkov cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: post-freeze damage control In-reply-to: References: <3604469.1712628736@sss.pgh.pa.us> Comments: In-reply-to Alexander Korotkov message dated "Tue, 09 Apr 2024 22:47:37 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3867996.1712695051.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 09 Apr 2024 16:37:31 -0400 Message-ID: <3867997.1712695051@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Korotkov writes: > On Tue, Apr 9, 2024 at 5:12 AM Tom Lane wrote: >> * OrClauseGroupKey is not a Node type, so why does it have >> a NodeTag? I wonder what value will appear in that field, >> and what will happen if the struct is passed to any code >> that expects real Nodes. > I used that to put both not-subject-of-transform nodes together with > hash entries into the same list. This is used to save the order of > clauses. I think this is an important property, and I have already > expressed it in [1]. What exactly is the point of having a NodeTag in the struct though? If you don't need it to be a valid Node, that seems pointless and confusing. We certainly have plenty of other lists that contain plain structs without tags, so I don't buy that the List infrastructure is making you do that. regards, tom lane