Revert "Move PartitionPruneInfo out of plan nodes into PlannedStmt"

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 5472743d9e8583638a897b47558066167cc14583
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2023-05-04T10:09:59Z
Releases: 16.0
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

Files

Discussion