Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A - Mailing list pgsql-hackers

From Alessio Bragadini
Subject Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A
Date
Msg-id 3ADC79F5.6A21E0FB@albourne.com
Whole thread Raw
In response to Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Responses Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A
List pgsql-hackers
Tom Lane wrote:

> Sounds good; could you check the regress tests too?

Mmmmhhh... Failed the int8 test, but seems more a difference in the text
of the error message. The others 75 were successful.

diff attached

--
Alessio F. Bragadini        alessio@albourne.com
APL Financial Services        http://village.albourne.com
Nicosia, Cyprus             phone: +357-2-755750

"It is more complicated than you think"
        -- The Eighth Networking Truth from RFC 1925*** ./expected/float8-fp-exception.out    Thu Mar 30 10:46:00 2000
--- ./results/float8.out    Tue Apr 17 20:09:17 2001
***************
*** 214,220 ****
     SET f1 = FLOAT8_TBL.f1 * '-1'
     WHERE FLOAT8_TBL.f1 > '0.0';
  SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f;
! ERROR:  floating point exception! The last floating point operation either exceeded legal ranges or was a divide by
zero
  SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f;
  ERROR:  pow() result is out of range
  SELECT '' AS bad, ln(f.f1) from FLOAT8_TBL f where f.f1 = '0.0' ;
--- 214,220 ----
     SET f1 = FLOAT8_TBL.f1 * '-1'
     WHERE FLOAT8_TBL.f1 > '0.0';
  SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f;
! ERROR:  Bad float8 input format -- overflow
  SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f;
  ERROR:  pow() result is out of range
  SELECT '' AS bad, ln(f.f1) from FLOAT8_TBL f where f.f1 = '0.0' ;

======================================================================


pgsql-hackers by date:

Previous
From: Jeroen Habets
Date:
Subject: Modified driver to better handle NULL values...
Next
From: Tom Lane
Date:
Subject: Re: AW: AW: timeout on lock feature