Thread: pgsql-server/src/backend/utils/adt float.c

pgsql-server/src/backend/utils/adt float.c

From
neilc@svr1.postgresql.org (Neil Conway)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    neilc@svr1.postgresql.org    04/03/14 01:22:52

Modified files:
    src/backend/utils/adt: float.c

Log message:
    Portability fixes and bug fixes for recent floating point input changes.
    In particular, don't depend on strtod() to accept 'NaN' and 'Infinity'
    inputs (while this is required by C99, not all platforms are compliant
    with that yet). Also, don't require glibc's behavior from isinf():
    it seems that on a lot of platforms isinf() does not itself distinguish
    between negative and positive infinity.