pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: regression failure on master with --disable-integer-datetimes
Date: Tue, 6 May 2014 15:39:52 -0400
Message-ID: <20140506193952.GA1313980@tornado.leadboat.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Tue, May 06, 2014 at 12:18:02PM -0700, Jeff Davis wrote:
> On Tue, 2014-05-06 at 14:48 -0400, Tom Lane wrote:
> > 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.)

I'm good with how you fixed it; losing three digits wouldn't be grave.  I
might fix it like this instead:

inline patch 1: src/test/regress/sql/interval.sql (+3/-1 lines) download inline-1.patch--- a/src/test/regress/sql/interval.sql +++ b/src/test/regress/sql/interval.sql @@ -111,3 +111,5 @@ select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 -- test long interval output -select '100000000y 10mon -1000000000d -1000000000h -10min -10.000001s ago'::interval; +select '100000000y 10mon -1000000000d -1000000000h -10min -10.000001s ago'::interval::text IN +('@ 100000000 years 10 mons -1000000000 days -1000000000 hours -10 mins -10.000001 secs ago', + '@ 100000000 years 10 mons -1000000000 days -1000000000 hours -10 mins -10 secs ago');
It seems I also broke the ecpg test suite under --disable-integer-datetimes. I think (not tested) the fix is s/123456789/123456123/ in dt_test2.pgc, because it rounds under float datetimes and truncates under integer datetimes. > > A different solution is to add a variant expected-output file, though > > I'm not terribly thrilled with that answer. > > Nor am I. Agreed. -- Noah Misch EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

view thread (6+ messages)  latest in thread

Message-ID: <20140506193952.GA1313980@tornado.leadboat.com>
Permalink:  ../20140506193952.GA1313980@tornado.leadboat.com/
Also on:    postgresql.org/message-id/20140506193952.GA1313980@tornado.leadboat.com

 ·  · 

reply

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: noah@leadboat.com, pgsql@j-davis.com, tgl@sss.pgh.pa.us
  Subject: Re: regression failure on master with --disable-integer-datetimes
  In-Reply-To: <20140506193952.GA1313980@tornado.leadboat.com>
  References: <1399399313.27807.28.camel@sussancws0025> <2501.1399402111@sss.pgh.pa.us> <1399403882.27807.40.camel@sussancws0025> <20140506193952.GA1313980@tornado.leadboat.com>

* 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