Invent nodetag_only attribute for Nodes.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/gen_node_support.pl | modified | +16 −11 |
| src/include/nodes/nodes.h | modified | +5 −0 |
| src/include/nodes/parsenodes.h | modified | +4 −0 |
Discussion
- Making CallContext and InlineCodeBlock less special-case-y 6 messages · 2022-07-09 → 2022-07-12