Re: Re: [GENERAL] +/- Inf for float8's

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Re: [GENERAL] +/- Inf for float8's
Дата
Msg-id Pine.LNX.4.30.0106022243150.23690-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Re: [GENERAL] +/- Inf for float8's  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Re: [GENERAL] +/- Inf for float8's  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: [GENERAL] +/- Inf for float8's
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [GENERAL] +/- Inf for float8's