pgsql: Fix run-time partition pruning for appends with multiple source

2018-08-01 Thread Tom Lane
Fix run-time partition pruning for appends with multiple source rels. The previous coding here supposed that if run-time partitioning applied to a particular Append/MergeAppend plan, then all child plans of that node must be members of a single partitioning hierarchy. This is totally wrong, since

pgsql: Fix run-time partition pruning for appends with multiple source

2018-08-01 Thread Tom Lane
Fix run-time partition pruning for appends with multiple source rels. The previous coding here supposed that if run-time partitioning applied to a particular Append/MergeAppend plan, then all child plans of that node must be members of a single partitioning hierarchy. This is totally wrong, since