Re: Re: [GENERAL] +/- Inf for float8's - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Re: [GENERAL] +/- Inf for float8's
Date
Msg-id Pine.LNX.4.30.0106022243150.23690-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: [GENERAL] +/- Inf for float8's  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: [GENERAL] +/- Inf for float8's
List pgsql-hackers
Tom Lane writes:

> [ continuing a discussion from last August ]
[I was *just* thinking about this.  Funny.]

> I believe that's not a problem anymore.  The current form of the float
> comparison functions will perform sorting and comparisons according to
> the sequence
>
>     -infinity < normal values < infinity < NaN < NULL

I was thinking about making NaN equivalent to NULL.  That would give
consistency in ordering, and probably also in arithmetic.  Additionally,
if the platform supports it we ought to make the Invalid Operation FP
exception (which yields NaN) configurable:  either get NULL or get an
error.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [GENERAL] +/- Inf for float8's
Next
From: Tom Lane
Date:
Subject: Re: Re: [GENERAL] +/- Inf for float8's