pgsql: Fix hash partition pruning with asymmetric partition sets.

2021-01-28 Thread Tom Lane
Fix hash partition pruning with asymmetric partition sets. perform_pruning_combine_step() was not taught about the number of partition indexes used in hash partitioning; more embarrassingly, get_matching_hash_bounds() also had it wrong. These errors are masked in the common case where all the par

pgsql: Fix hash partition pruning with asymmetric partition sets.

2021-01-28 Thread Tom Lane
Fix hash partition pruning with asymmetric partition sets. perform_pruning_combine_step() was not taught about the number of partition indexes used in hash partitioning; more embarrassingly, get_matching_hash_bounds() also had it wrong. These errors are masked in the common case where all the par

pgsql: Fix hash partition pruning with asymmetric partition sets.

2021-01-28 Thread Tom Lane
Fix hash partition pruning with asymmetric partition sets. perform_pruning_combine_step() was not taught about the number of partition indexes used in hash partitioning; more embarrassingly, get_matching_hash_bounds() also had it wrong. These errors are masked in the common case where all the par

pgsql: Fix hash partition pruning with asymmetric partition sets.

2021-01-28 Thread Tom Lane
Fix hash partition pruning with asymmetric partition sets. perform_pruning_combine_step() was not taught about the number of partition indexes used in hash partitioning; more embarrassingly, get_matching_hash_bounds() also had it wrong. These errors are masked in the common case where all the par