You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Move PartitioPruneInfo out of plan nodes into PlannedStmt
The planner will now add a given PartitioPruneInfo toPlannedStmt.partPruneInfos instead of directly to theAppend/MergeAppend plan node. What gets set instead in thelatter is an index field which points to the list elementof PlannedStmt.partPruneInfos containing the PartitioPruneInfobelonging to the plan node.A later commit will make AcquireExecutorLocks() do the initialpartition pruning to determine a minimal set of partitions to belocked when validating a plan tree and it will need to consult thePartitioPruneInfos referenced therein to do so. It would be betterfor the PartitioPruneInfos to be accessible directly than requiringa walk of the plan tree to find them, which is easier when it can bedone by simply iterating over PlannedStmt.partPruneInfos.Author: Amit Langote <amitlangote09@gmail.com>Discussion:https://postgr.es/m/CA+HiwqFGkMSge6TgC9KQzde0ohpAycLQuV7ooitEEpbKB0O_mg@mail.gmail.com