Re: pgsql/src/backend/utils/adt float.c - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql/src/backend/utils/adt float.c
Date
Msg-id Pine.LNX.4.30.0106022239210.23690-100000@peter.localdomain
Whole thread Raw
In response to pgsql/src/backend/utils/adt float.c  (Tom Lane <tgl@hub.org>)
Responses Re: pgsql/src/backend/utils/adt float.c
List pgsql-committers
Tom Lane writes:

>     Accept and output '-Infinity' as well as 'Infinity', per long-ago
>     suggestion from Ross Reedstrom.  Still needs work to make those symbols
>     convert to actual IEEE infinities (on machines where such things exist).

#ifdef INFINITY
    val = INFINITY;
#else
    elog?
#endif

Those who don't have INFINITY can define it in their port.h, like NAN.
1.0/0.0 should suffice.

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql/src/backend/utils/adt float.c
Next
From: Tom Lane
Date:
Subject: Re: pgsql/src/backend/utils/adt float.c