From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-bugs@postgresql.org
Cc: Noah Misch <noah@leadboat.com>
Subject: regression failure on master with --disable-integer-datetimes
Date: Tue, 06 May 2014 11:01:53 -0700
Message-ID: <1399399313.27807.28.camel@sussancws0025> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Introduced in commit 4318daecc959886d001a6e79c6ea853e8b1dfb4b.
Attached regression failure and patch. It looks like we're no longer
running floating point timestamps on the buildfarm?
To make the output for float/integer timestamps the same, we either need
to remove the fractional seconds or reduce the number of hours.
It looks like the test is for maximum output length of an interval, so
it seems better to reduce the number of hours to one million, which is
what my patch does. It still loses 3 characters of output length, which
is a bit unfortunate given the purpose of the test, but it's better than
losing 7. I don't have a better idea.
Regards,
Jeff Davis
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugsAttachments:download all (2 files, .tar.gz)regression.diffs (text/x-patch, 1.2K) download
*** /home/jdavis/wd/git/postgresql/src/test/regress/expected/interval.out 2014-04-29 16:12:58.207041718 -0700
--- /home/jdavis/wd/git/postgresql/src/test/regress/results/interval.out 2014-05-06 10:04:20.052642703 -0700
***************
*** 308,316 ****
-- test long interval output
select '100000000y 10mon -1000000000d -1000000000h -10min -10.000001s ago'::interval;
! interval
! -------------------------------------------------------------------------------------------
! @ 100000000 years 10 mons -1000000000 days -1000000000 hours -10 mins -10.000001 secs ago
(1 row)
-- test justify_hours() and justify_days()
--- 308,316 ----
-- test long interval output
select '100000000y 10mon -1000000000d -1000000000h -10min -10.000001s ago'::interval;
! interval
! ------------------------------------------------------------------------------------
! @ 100000000 years 10 mons -1000000000 days -1000000000 hours -10 mins -10 secs ago
(1 row)
-- test justify_hours() and justify_days()
======================================================================
float-test.patch (text/x-patch, 1.8K) download
*** a/src/test/regress/expected/interval.out
--- b/src/test/regress/expected/interval.out
***************
*** 307,316 **** select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31
(1 row)
-- test long interval output
! select '100000000y 10mon -1000000000d -1000000000h -10min -10.000001s ago'::interval;
! interval
! -------------------------------------------------------------------------------------------
! @ 100000000 years 10 mons -1000000000 days -1000000000 hours -10 mins -10.000001 secs ago
(1 row)
-- test justify_hours() and justify_days()
--- 307,316 ----
(1 row)
-- test long interval output
! select '100000000y 10mon -1000000000d -1000000h -10min -10.000001s ago'::interval;
! interval
! ----------------------------------------------------------------------------------------
! @ 100000000 years 10 mons -1000000000 days -1000000 hours -10 mins -10.000001 secs ago
(1 row)
-- test justify_hours() and justify_days()
*** a/src/test/regress/sql/interval.sql
--- b/src/test/regress/sql/interval.sql
***************
*** 109,115 **** select avg(f1) from interval_tbl;
select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval;
-- test long interval output
! select '100000000y 10mon -1000000000d -1000000000h -10min -10.000001s ago'::interval;
-- test justify_hours() and justify_days()
--- 109,115 ----
select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval;
-- test long interval output
! select '100000000y 10mon -1000000000d -1000000h -10min -10.000001s ago'::interval;
-- test justify_hours() and justify_days()
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pgsql@j-davis.com, noah@leadboat.com
Subject: Re: regression failure on master with --disable-integer-datetimes
In-Reply-To: <1399399313.27807.28.camel@sussancws0025>
References: <1399399313.27807.28.camel@sussancws0025>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox