pgsql: Invent nodetag_only attribute for Nodes.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Invent nodetag_only attribute for Nodes.
Date: 2022-07-12 15:23:03
Message-ID: E1oBHj4-002S6e-CN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Larry Rosenman 2022-07-12 15:29:20 Re: pgsql: Fix out-of-bounds read in json_lex_string
Previous Message Alvaro Herrera 2022-07-12 15:20:59 test_oat_hooks bug (was: Re: pgsql: Add copy/equal support for XID lists)