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
Partitioned tables do not contain any data; only their unpartitioneddescendents need to be scanned. However, the partitioned tables stillneed to be locked, even though they're not scanned. To make thatwork, Append and MergeAppend relations now need to carry a list of(unscanned) partitioned relations that must be locked, and InitPlanmust lock all partitioned result relations.Aside from the obvious advantage of avoiding some work at executiontime, this has two other advantages. First, it may improve theplanner's decision-making in some cases since the empty relationmight throw things off. Second, it paves the way to getting rid ofthe storage for partitioned tables altogether.Amit Langote, reviewed by me.Discussion:http://postgr.es/m/6837c359-45c4-8044-34d1-736756335a15@lab.ntt.co.jp