Thread: pgsql: Relocate partition pruning structs to a saner place.

pgsql: Relocate partition pruning structs to a saner place.

From
Tom Lane
Date:
Relocate partition pruning structs to a saner place.

These struct definitions were originally dropped into primnodes.h,
which is a poor choice since that's mainly intended for primitive
expression node types; these are not in that category.  What they
are is auxiliary info in Plan trees, so move them to plannodes.h.

For consistency, also relocate some related code that was apparently
placed with the aid of a dartboard.

There's no interesting code changes in this commit, just reshuffling.

David Rowley and Tom Lane

Discussion: https://postgr.es/m/CAFj8pRBjrufA3ocDm8o4LPGNye9Y+pm1b9kCwode4X04CULG3g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/939449de0e571b8c0b07674bb7095e06e93cc059

Modified Files
--------------
src/backend/executor/execPartition.c    |   2 +-
src/backend/nodes/copyfuncs.c           | 124 ++++++++++++++++----------------
src/backend/nodes/outfuncs.c            | 124 ++++++++++++++++----------------
src/backend/nodes/readfuncs.c           | 110 ++++++++++++++--------------
src/backend/optimizer/plan/createplan.c |   2 +-
src/include/nodes/nodes.h               |   7 +-
src/include/nodes/plannodes.h           | 114 +++++++++++++++++++++++++++--
src/include/nodes/primnodes.h           | 104 ---------------------------
8 files changed, 294 insertions(+), 293 deletions(-)