Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhkPu-0005Hd-0G for pgsql-bugs@arkaria.postgresql.org; Tue, 06 May 2014 18:48:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WhkPt-0003LY-HD for pgsql-bugs@arkaria.postgresql.org; Tue, 06 May 2014 18:48:37 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhkPs-0003LR-G4 for pgsql-bugs@postgresql.org; Tue, 06 May 2014 18:48:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhkPq-0005zj-3w for pgsql-bugs@postgresql.org; Tue, 06 May 2014 18:48:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s46ImVuJ002503; Tue, 6 May 2014 14:48:31 -0400 From: Tom Lane To: Jeff Davis cc: pgsql-bugs@postgresql.org, Noah Misch Subject: Re: regression failure on master with --disable-integer-datetimes In-reply-to: <1399399313.27807.28.camel@sussancws0025> References: <1399399313.27807.28.camel@sussancws0025> Comments: In-reply-to Jeff Davis message dated "Tue, 06 May 2014 11:01:53 -0700" Date: Tue, 06 May 2014 14:48:31 -0400 Message-ID: <2501.1399402111@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Davis writes: > Introduced in commit 4318daecc959886d001a6e79c6ea853e8b1dfb4b. > Attached regression failure and patch. It looks like we're no longer > running floating point timestamps on the buildfarm? Evidently :-(. Who wants to crank up an animal doing that? > 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. Hm. As the test stands, it requires a float-timestamps implementation to store a value of 3600000610.000001 seconds, which is 16 decimal digits or about one more than can reliably be extracted from an IEEE float8. At least for IEEE machines, I think we could remove just one digit and it would work (or if not, that would say that some additional thought needs to be put into the rounding behavior in interval_out). However, removing *any* digits seems like it mostly defeats the point of the test. Maybe we should just lose the test? A different solution is to add a variant expected-output file, though I'm not terribly thrilled with that answer. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs