pgsql: Fix comparison logic in partition_bounds_equal for non-finite bo

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix comparison logic in partition_bounds_equal for non-finite bo
Date: 2017-01-20 20:53:17
Message-ID: E1cUgBR-0002YP-6A@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6546ffb35db78365d9f0011d75d16625e6040437

Modified Files
--------------
src/backend/catalog/partition.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-01-20 21:28:02 pgsql: Avoid useless respawining the autovacuum launcher at high speed.
Previous Message Alvaro Herrera 2017-01-20 19:45:48 pgsql: Record dependencies on owners for logical replication objects