float4 regression test failed on linux parisc

From: "Jim Buttafuoco" <jim(at)contactbda(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: float4 regression test failed on linux parisc
Date: 2005-02-01 15:12:27
Message-ID: 20050201144717.M71310@contactbda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am getting a float4 regression test failure. I have extracted the SQL from both the float4 and float8 tests below.
Both should return NAN

I looked at the code, The float4div does the operation as float8's then checks the value. The value is a valid
float8 NAN. The call to CheckFloat4Val is missing a cast back to float4. If I put the cast in I get the expected
results (NAN).

SELECT 'Infinity'::float4 / 'Infinity'::float4;
psql:test.sql:1: ERROR: type "real" value out of range: overflow

SELECT 'Infinity'::float8 / 'Infinity'::float8;
?column?
----------
NaN
(1 row)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2005-02-01 15:28:08 Re: 7.2.7 -> 8.0.1 Bundles Ready ...
Previous Message John Hansen 2005-02-01 14:48:49 Re: [NOVICE] Last ID Problem