Re: GiST for range types (was Re: Range Types - typo + NULL string constructor) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)
Date
Msg-id 6217.1320263302@sss.pgh.pa.us
Whole thread Raw
In response to Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> On 01.11.2011 06:33, Jeff Davis wrote:
>> +       else if (lower1.infinite || upper1.infinite)
>> +               length1 = 1.0/0.0;

> That seems wrong. I take it that the point is to set length1 to infinity?

Please use get_float[48]_infinity() or get_float[48]_nan(), as
appropriate (I think the latter may be intended here), rather than
making up your own way of getting those values.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)
Next
From: Simon Riggs
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Reduce checkpoints and WAL traffic on low activity database serv