pgsql: Use IEEE infinity, not 1e10, for null-and-not-null case in gistp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use IEEE infinity, not 1e10, for null-and-not-null case in gistp
Date: 2011-11-27 22:13:03
Message-ID: E1RUmy7-0004PV-5V@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use IEEE infinity, not 1e10, for null-and-not-null case in gistpenalty().

Use of a randomly chosen large value was never exactly graceful, and
now that there are penalty functions that are intentionally using infinity,
it doesn't seem like a good idea for null-vs-not-null to be using something
less.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9f4563f743eab0682f908d51fa3a9c630b31322d

Modified Files
--------------
src/backend/access/gist/gistutil.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2011-11-27 23:03:38 Re: pgsql: Move pg_dump memory routines into pg_dumpmem.c/h and restore com
Previous Message Tom Lane 2011-11-27 21:51:39 pgsql: Improve GiST range-contained-by searches by adding a flag for em