pgsql: Make assorted quality-of-life improvements in gen_node_support.p

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make assorted quality-of-life improvements in gen_node_support.p
Date: 2022-07-09 19:15:14
Message-ID: E1oAFv7-00202G-DU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make assorted quality-of-life improvements in gen_node_support.pl.

Fix incorrect reporting of the location of errors (such as bogus
node attributes). Add header comments to the generated files,
containing copyright notices and reminders that they are generated
files, as we do in other file-generating scripts. Arrange to not
leave a clutter of temporary files when the script detects an error.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8eccaf65254225921d6fd1f3bfa23e8a0b1f6bbb

Modified Files
--------------
src/backend/nodes/gen_node_support.pl | 124 +++++++++++++++++++++++++++-------
1 file changed, 101 insertions(+), 23 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-07-09 20:17:49 Re: pgsql: Move a comment
Previous Message Tom Lane 2022-07-09 17:58:23 pgsql: Mark Scan as an abstract node type, too.