pgsql: Avoid crash in partitionwise join planning under GEQO.

2019-03-30 Thread Tom Lane
Avoid crash in partitionwise join planning under GEQO. While trying to plan a partitionwise join, we may be faced with cases where one or both input partitions for a particular segment of the join have been pruned away. In HEAD and v11, this is problematic because earlier processing didn't bother

pgsql: Avoid crash in partitionwise join planning under GEQO.

2019-03-30 Thread Tom Lane
Avoid crash in partitionwise join planning under GEQO. While trying to plan a partitionwise join, we may be faced with cases where one or both input partitions for a particular segment of the join have been pruned away. In HEAD and v11, this is problematic because earlier processing didn't bother