pgsql: Revert "Move PartitionPruneInfo out of plan nodes into PlannedSt

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revert "Move PartitionPruneInfo out of plan nodes into PlannedSt
Date: 2023-05-04 10:10:48
Message-ID: E1puVvD-000QKJ-JY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.kcoirxczpdha26wt@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5472743d9e8583638a897b47558066167cc14583

Modified Files
--------------
src/backend/executor/execMain.c | 1 -
src/backend/executor/execParallel.c | 1 -
src/backend/executor/execPartition.c | 18 +------
src/backend/executor/execUtils.c | 1 -
src/backend/executor/nodeAppend.c | 5 +-
src/backend/executor/nodeMergeAppend.c | 5 +-
src/backend/optimizer/plan/createplan.c | 24 +++++----
src/backend/optimizer/plan/planner.c | 1 -
src/backend/optimizer/plan/setrefs.c | 88 +++++++++++----------------------
src/backend/partitioning/partprune.c | 19 +++----
src/include/catalog/catversion.h | 2 +-
src/include/executor/execPartition.h | 4 +-
src/include/nodes/execnodes.h | 1 -
src/include/nodes/pathnodes.h | 6 ---
src/include/nodes/plannodes.h | 14 ++----
src/include/partitioning/partprune.h | 8 +--
16 files changed, 63 insertions(+), 135 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-05-04 15:00:53 pgsql: Tighten array dimensionality checks in Python -> SQL array conve
Previous Message Peter Eisentraut 2023-05-04 05:37:29 pgsql: doc: New glossary entries