Skip site navigation (1) Skip section navigation (2)

Re: float4 regression test failed on linux parisc

From: "Jim Buttafuoco" <jim(at)contactbda(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: float4 regression test failed on linux parisc
Date: 2005-02-01 22:20:17
Message-ID: 20050201221550.M8571@contactbda.com (view raw or flat)
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us>
To: jim(at)contactbda(dot)com
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Sent: Tue, 01 Feb 2005 17:13:52 -0500
Subject: Re: [HACKERS] float4 regression test failed on linux parisc 

> "Jim Buttafuoco" <jim(at)contactbda(dot)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 -------


In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-02-01 22:25:50
Subject: Re: float4 regression test failed on linux parisc
Previous:From: Tom LaneDate: 2005-02-01 22:13:52
Subject: Re: float4 regression test failed on linux parisc

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group