Re: Regression failure for floats - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Regression failure for floats
Date
Msg-id 18440.1079241672@sss.pgh.pa.us
Whole thread Raw
In response to Regression failure for floats  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am seeing the following regression failure for current CVS.  On my OS,
> BSD/OS 4.3, it seems once you hit Infinity, you can't negate it. 
> /usr/include/math.h has:
>     /* Generate an overflow to create +Inf; the multiply shuts up gcc 1 */
>     #define HUGE_VAL    (1e250*1e250)       /* IEEE: positive infinity */
> and our float4in code has:
>         else if (strcasecmp(num, "-Infinity") == 0)
>             val = -HUGE_VAL;
> Seems that doesn't work for me.

No, the bug is that Neil assumed isinf() would tell him the sign of an
infinity.  I believe he's about to commit a patch for this and some
other bogosities.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] What's left?
Next
From: Neil Conway
Date:
Subject: Re: Regression failure for floats