Re: float4 regression test failed on linux parisc - Mailing list pgsql-hackers

From Jim Buttafuoco
Subject Re: float4 regression test failed on linux parisc
Date
Msg-id 20050201221550.M8571@contactbda.com
Whole thread Raw
In response to float4 regression test failed on linux parisc  ("Jim Buttafuoco" <jim@contactbda.com>)
Responses Fw: Re: float4 regression test failed on linux parisc  ("Jim Buttafuoco" <jim@contactbda.com>)
List pgsql-hackers
Tom,

The issue is with a select 'Infinity'::float4/'Infinity'::float4; which should return NAN.  without the cast I get the

overflow message from CheckFloat4Val with the cast I get NAN (as expected). How about testing for isnan() inside 
CheckFloat4Val (just for PARISC / Linux)? 

I am trying to get this system working for the buildfarm as there are NO other HP PARISC system on the farm.

Jim


---------- Original Message -----------
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jim@contactbda.com
Cc: "pgsql-hackers" <pgsql-hackers@postgresql.org>
Sent: Tue, 01 Feb 2005 17:13:52 -0500
Subject: Re: [HACKERS] float4 regression test failed on linux parisc 

> "Jim Buttafuoco" <jim@contactbda.com> writes:
> > Change:
> >         CheckFloat4Val(result);
> > To:
> >         CheckFloat4Val((float4)result);
> 
> CheckFloat4Val is defined to take a double, so whatever the above is
> accomplishing is wrong: probably it's masking an out-of-range result.
> I think you've hit a bug in Debian's version of gcc for PA-RISC.
> 
>             regards, tom lane
------- End of Original Message -------



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: float4 regression test failed on linux parisc
Next
From: Tom Lane
Date:
Subject: Re: float4 regression test failed on linux parisc