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 1oBL63-0001u1-Os for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jul 2022 18:58:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oBL62-0004uB-KX for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jul 2022 18:58:58 +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 1oBL62-0004tv-Ai for pgsql-hackers@lists.postgresql.org; Tue, 12 Jul 2022 18:58:58 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBL60-0004Ro-3W for pgsql-hackers@lists.postgresql.org; Tue, 12 Jul 2022 18:58:57 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id E9F02320085B; Tue, 12 Jul 2022 14:58:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 12 Jul 2022 14:58:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1657652334; x= 1657738734; bh=TrDZSvUQT7SVKgU07X7jKWSiI7o0pHc4EUxLoR5wB0g=; b=y Xtv2ZW+HucMPBbyZMwQCFZJHwH1Bhf63cQlSQYFLxbb1l5mUO03Sq3IAVTmseQUC sHm9UTbVhkWzl75YvR5HvNK/fQPI2+7U1BjnVWnBpk2Ynumo31LuSgurZeO68agV Z6DI1ymp4NESVK9x5ixjMr8yNs/poaBu9edr+zCbDDDJ/KfC4uz6ta+5PqlXE9qb 3WghYqptwsRgM4s1i+fWrIkBV6bNE/ThjSESHxUc3uUoGTdtsd7aNf61hlkFfN16 +QA+T8/0Jk9JvCkbmUmHkyqFdPgbmyzAcCIgxVJEeFA5zEutBPcFM2oWPEtwalpJ kxiTR9L+9ZsNbiv9otb6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejhedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgse htjeertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvght vghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtf frrghtthgvrhhnpeehleffgeegudejteeihfelteduvdeifffhffdvjedvffegjeekudel udehudeifeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Jul 2022 14:58:53 -0400 (EDT) Message-ID: <9fdda793-ba84-2fcf-077b-af870892b573@enterprisedb.com> Date: Tue, 12 Jul 2022 20:58:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Making CallContext and InlineCodeBlock less special-case-y Content-Language: en-US To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org References: <75063.1657410615@sss.pgh.pa.us> <95eba2c3-dda9-7d75-2829-6f12efc48e75@enterprisedb.com> <1077598.1657548709@sss.pgh.pa.us> <1295224.1657580493@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <1295224.1657580493@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12.07.22 01:01, Tom Lane wrote: > I wrote: >> 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. > > Here's a proposed patch for this bit. Again, whether these two > node types have unnecessary support functions is not the point --- > obviously we could afford to waste that much space. Rather, what > I'm after is to have a more explainable and flexible way of dealing > with the file-level exclusions applied to a lot of other node types. > This patch doesn't make any change in the script's output now, but > it gives us flexibility for the future. Yeah, looks reasonable.