pgsql: Fix bogus logic for reporting which hash partition conflicts.

2021-06-29 Thread Tom Lane
Fix bogus logic for reporting which hash partition conflicts. Commit efbfb6424 added logic for reporting exactly which existing partition conflicts when complaining that a new hash partition's modulus isn't compatible with the existing ones. However, it misunderstood the partitioning data structu

pgsql: Fix bogus logic for reporting which hash partition conflicts.

2021-06-29 Thread Tom Lane
Fix bogus logic for reporting which hash partition conflicts. Commit efbfb6424 added logic for reporting exactly which existing partition conflicts when complaining that a new hash partition's modulus isn't compatible with the existing ones. However, it misunderstood the partitioning data structu