From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Making CallContext and InlineCodeBlock less special-case-y
Date: Tue, 12 Jul 2022 20:58:53 +0200
Message-ID: <9fdda793-ba84-2fcf-077b-af870892b573@enterprisedb.com> (raw)
In-Reply-To: <1295224.1657580493@sss.pgh.pa.us>
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>
On 12.07.22 01:01, Tom Lane wrote:
> I wrote:
>> Peter Eisentraut <peter.eisentraut@enterprisedb.com> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@enterprisedb.com, tgl@sss.pgh.pa.us
Subject: Re: Making CallContext and InlineCodeBlock less special-case-y
In-Reply-To: <9fdda793-ba84-2fcf-077b-af870892b573@enterprisedb.com>
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> <9fdda793-ba84-2fcf-077b-af870892b573@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox