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 1oAu8h-000493-CX for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 14:11:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAu8g-00035V-Ap for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 14:11:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAu8g-000334-1R for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 14:11:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAu8d-0007X3-ON for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 14:11:53 +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 26BEBnEG1077599; Mon, 11 Jul 2022 10:11:49 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@lists.postgresql.org Subject: Re: Making CallContext and InlineCodeBlock less special-case-y In-reply-to: <95eba2c3-dda9-7d75-2829-6f12efc48e75@enterprisedb.com> References: <75063.1657410615@sss.pgh.pa.us> <95eba2c3-dda9-7d75-2829-6f12efc48e75@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 11 Jul 2022 15:59:21 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1077597.1657548709.1@sss.pgh.pa.us> Date: Mon, 11 Jul 2022 10:11:49 -0400 Message-ID: <1077598.1657548709@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 10.07.22 01:50, Tom Lane wrote: >> As committed, gen_node_support.pl excludes CallContext and InlineCodeBlock >> from getting unneeded support functions via some very ad-hoc code. > Couldn't we just enable those support functions? I think they were just > excluded because they didn't have any before and nobody bothered to make > any. Well, we could I suppose, but that path leads to a lot of dead code in backend/nodes/ --- obviously these two alone are negligible, but I want a story other than "it's a hack" for execnodes.h and the other files we exclude from generation of support code. After sleeping on it, I'm thinking the "pg_node_attr(nodetag_only)" solution is the way to go, as that can lead to per-node rather than per-file exclusion of support code, which we're surely going to want eventually in more places. regards, tom lane