Fix comparison logic in partition_bounds_equal for non-finite bounds.
authorRobert Haas <rhaas@postgresql.org>
Fri, 20 Jan 2017 20:47:31 +0000 (15:47 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 20 Jan 2017 20:49:38 +0000 (15:49 -0500)
commit6546ffb35db78365d9f0011d75d16625e6040437
tree1838f1d18bc83b64c1c89f70398a16d9177cacc3
parent50cf1c80e6be80cc620749824fe9e3cd7f6c118e
Fix comparison logic in partition_bounds_equal for non-finite bounds.

If either bound is infinite, then we shouldn't even try to perform a
comparison of the values themselves.  Rearrange the logic so that
we don't.

Per buildfarm member skink and Tom Lane.
src/backend/catalog/partition.c