Revert "Move PartitionPruneInfo out of plan nodes into PlannedStmt"
authorAlvaro Herrera <[email protected]>
Thu, 4 May 2023 10:09:59 +0000 (12:09 +0200)
committerAlvaro Herrera <[email protected]>
Thu, 4 May 2023 10:09:59 +0000 (12:09 +0200)
commit5472743d9e8583638a897b47558066167cc14583
tree5c983ffbf40157062fe6922f1b0c448e8b7d011f
parent919c486a275bcdd83d2add77da87b6edbd91418c
Revert "Move PartitionPruneInfo out of plan nodes into PlannedStmt"

This reverts commit ec386948948c and its fixup 589bb816499e.

This change was intended to support query planning avoiding acquisition
of locks on partitions that were going to be pruned; however, the
overall project took a different direction at [1] and this bit is no
longer needed.  Put things back the way they were as agreed in [2], to
avoid unnecessary complexity.

Discussion: [1] https://postgr.es/m/4191508.1674157166@sss.pgh.pa.us
Discussion: [2] https://postgr.es/m/20230502175409[email protected]
16 files changed:
src/backend/executor/execMain.c
src/backend/executor/execParallel.c
src/backend/executor/execPartition.c
src/backend/executor/execUtils.c
src/backend/executor/nodeAppend.c
src/backend/executor/nodeMergeAppend.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/setrefs.c
src/backend/partitioning/partprune.c
src/include/catalog/catversion.h
src/include/executor/execPartition.h
src/include/nodes/execnodes.h
src/include/nodes/pathnodes.h
src/include/nodes/plannodes.h
src/include/partitioning/partprune.h