Fix comparison logic in partition_bounds_equal for non-finite bounds.

Robert Haas <rhaas@postgresql.org>

Commit: 6546ffb35db78365d9f0011d75d16625e6040437
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-01-20T20:49:38Z
Releases: 10.0
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.

Files

PathChange+/−
src/backend/catalog/partition.c modified +16 −4