pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Invent nodetag_only attribute for Nodes.
Date: Tue, 12 Jul 2022 15:23:03 +0000
Message-ID: <E1oBHj4-002S6e-CN@gemulon.postgresql.org> (raw)

Invent nodetag_only attribute for Nodes.

This allows explaining gen_node_support.pl's handling of execnodes.h
and some other input files as being a shortcut for explicit marking
of all their node declarations as pg_node_attr(nodetag_only).
I foresee that someday we might need to be more fine-grained about
that, and this change provides the infrastructure needed to do so.
For now, it just allows removal of the script's klugy special case
for CallContext and InlineCodeBlock.

Discussion: https://postgr.es/m/75063.1657410615@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ca187d7455f174da40e26e6e0c8361821ee19559

Modified Files
--------------
src/backend/nodes/gen_node_support.pl | 27 ++++++++++++++++-----------
src/include/nodes/nodes.h             |  5 +++++
src/include/nodes/parsenodes.h        |  4 ++++
3 files changed, 25 insertions(+), 11 deletions(-)



Message-ID: <E1oBHj4-002S6e-CN@gemulon.postgresql.org>
Permalink:  ../E1oBHj4-002S6e-CN@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oBHj4-002S6e-CN@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Invent nodetag_only attribute for Nodes.
  In-Reply-To: <E1oBHj4-002S6e-CN@gemulon.postgresql.org>
  References: <E1oBHj4-002S6e-CN@gemulon.postgresql.org>

* 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