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
Revert "Don't lock partitions pruned by initial pruning"
As pointed out by Tom Lane, the patch introduced fragile and invasivedesign around plan invalidation handling when locking of prunablepartitions was deferred from plancache.c to the executor. Inparticular, it violated assumptions about CachedPlan immutability andaltered executor APIs in ways that are difficult to justify given theadded complexity and overhead.This also removes the firstResultRels field added to PlannedStmt incommit28317de, which was intended to support deferred locking ofcertain ModifyTable result relations.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/605328.1747710381@sss.pgh.pa.us