From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | new int8 test still has problems |
Date: | 2008-10-05 16:33:18 |
Message-ID: | 6272.1223224398@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
It fails on two of my machines like this:
*** src/test/regress/expected/int8.out Sun Oct 5 12:19:58 2008
--- src/test/regress/results/int8.out Sun Oct 5 12:20:26 2008
***************
*** 748,756 ****
(1 row)
SELECT CAST('9223372036854775807.0'::float4 AS int8);
! ERROR: bigint out of range
SELECT CAST('9223372036854775807.0'::float8 AS int8);
! ERROR: bigint out of range
SELECT CAST('922337203685477580700.0'::float8 AS int8);
ERROR: bigint out of range
SELECT CAST(q1 AS oid) FROM INT8_TBL;
--- 748,764 ----
(1 row)
SELECT CAST('9223372036854775807.0'::float4 AS int8);
! int8
! ---------------------
! 9223372036854775807
! (1 row)
!
SELECT CAST('9223372036854775807.0'::float8 AS int8);
! int8
! ---------------------
! 9223372036854775807
! (1 row)
!
SELECT CAST('922337203685477580700.0'::float8 AS int8);
ERROR: bigint out of range
SELECT CAST(q1 AS oid) FROM INT8_TBL;
======================================================================
It seems to me that these two new tests are inherently checking
machine-dependent floating point behavior, not anything Postgres
can control. I'd suggest just removing them.
The buildfarm is showing still other "interesting" behaviors.
I'm not really interested in having umpteen expected int8 files
to deal with all the strange corner cases that might be seen
on different platforms. Please just remove all the edge-case
tests.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2008-10-05 17:37:50 | Re: db_user_namespace, md5 and changing passwords |
Previous Message | Tom Lane | 2008-10-05 15:41:21 | Re: CYCLE and SEARCH [was Re: Common Table Expressions (WITH RECURSIVE) patch] |