pgsql: Relocate partition pruning structs to a saner place.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Relocate partition pruning structs to a saner place.
Date: 2018-06-10 20:30:29
Message-ID: E1fS6yr-0000Z0-QX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-06-10 22:24:39 pgsql: Assorted cosmetic cleanup of run-time-partition-pruning code.
Previous Message Tom Lane 2018-06-10 19:22:44 pgsql: Improve run-time partition pruning to handle any stable expressi