gen_node_support.pl: Mark location fields as type alias ParseLoc
Peter Eisentraut <peter@eisentraut.org>
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.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/gen_node_support.pl | modified | +3 −3 |
| src/include/nodes/nodes.h | modified | +9 −0 |
| src/include/nodes/parsenodes.h | modified | +46 −46 |
| src/include/nodes/plannodes.h | modified | +2 −2 |
| src/include/nodes/primnodes.h | modified | +36 −36 |
| src/tools/pgindent/typedefs.list | modified | +1 −0 |
Discussion
- Reducing output size of nodeToString 29 messages · 2023-12-06 → 2024-03-22