From: Jeff Davis <pgsql@j-davis.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Cc: Noah Misch <noah@leadboat.com>
Subject: Re: regression failure on master with --disable-integer-datetimes
Date: Tue, 06 May 2014 12:18:02 -0700
Message-ID: <1399403882.27807.40.camel@sussancws0025> (raw)
In-Reply-To: <2501.1399402111@sss.pgh.pa.us>
References: <1399399313.27807.28.camel@sussancws0025>
<2501.1399402111@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Tue, 2014-05-06 at 14:48 -0400, Tom Lane wrote:
> Hm. As the test stands, it requires a float-timestamps implementation
> to store a value of 3600000610.000001 seconds, which is 16 decimal digits
The test value has 1e9 hours, which is 3.6e12 seconds, plus 6 more
digits for microseconds is 18 decimal digits. If, as you say, 15 digits
can be reliably extracted from a double, then we need to cut three zeros
(which matches my simple test of just removing zeros until it achieves
the microsecond precision).
> However, removing *any* digits seems like it mostly defeats the point of
> the test. Maybe we should just lose the test?
The reason I thought it might still have some value is because it would
have still caught the problem that 4318daec patched. But I'm fine with
removing it.
(Though, I should add a comment indicating that it's not testing the
true maximum length.)
> A different solution is to add a variant expected-output file, though
> I'm not terribly thrilled with that answer.
Nor am I.
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-bugs
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, tgl@sss.pgh.pa.us, noah@leadboat.com
Subject: Re: regression failure on master with --disable-integer-datetimes
In-Reply-To: <1399403882.27807.40.camel@sussancws0025>
References: <1399399313.27807.28.camel@sussancws0025> <2501.1399402111@sss.pgh.pa.us> <1399403882.27807.40.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