pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: gen_node_support.pl: Mark location fields as type alias ParseLoc
Date: Tue, 19 Mar 2024 16:08:19 +0000
Message-ID: <E1rmc0g-004cDz-Nc@gemulon.postgresql.org> (raw)

gen_node_support.pl: Mark location fields as type alias ParseLoc

Instead of the rather ugly type=int + name ~= location$, we now have a
marker type for offset pointers or sizes that are only relevant when a
query text is included, which decreases the complexity required in
gen_node_support.pl for handling these values.

Author: Matthias van de Meent <boekewurm+postgres@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEze2WgrCiR3JZmWyB0YTc8HV7ewRdx13j0CqD6mVkYAW+SFGQ@mail....

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/605721f819f5b603db6bc1405ef414747d182116

Modified Files
--------------
src/backend/nodes/gen_node_support.pl |  6 +--
src/include/nodes/nodes.h             |  9 ++++
src/include/nodes/parsenodes.h        | 92 +++++++++++++++++------------------
src/include/nodes/plannodes.h         |  4 +-
src/include/nodes/primnodes.h         | 72 +++++++++++++--------------
src/tools/pgindent/typedefs.list      |  1 +
6 files changed, 97 insertions(+), 87 deletions(-)



Message-ID: <E1rmc0g-004cDz-Nc@gemulon.postgresql.org>
Permalink:  ../E1rmc0g-004cDz-Nc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rmc0g-004cDz-Nc@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: gen_node_support.pl: Mark location fields as type alias ParseLoc
  In-Reply-To: <E1rmc0g-004cDz-Nc@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