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: Wed, 7 May 2014 22:57:39 -0400
Message-ID: <20140508025739.GC1355372@tornado.leadboat.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Tue, May 06, 2014 at 03:39:52PM -0400, Noah Misch wrote:
> 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.

Besides that, one of the new combinations had the same insufficient-precision
problem that affected interval.sql.  With your commit and the attached patch,
"make check-world" looks good under --disable-integer-datetimes.

-- 
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

Attachments:

ecpg-check-float-date-v1.patch (text/plain, 2.4K) download diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c index 0ba1936..4277c26 100644 --- a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c +++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c @@ -61,7 +61,7 @@ static char *times[] = { "0:04", "1:59 PDT", "13:24:40 -8:00", "13:24:40.495+3", - "13:24:40.123456789+3", + "13:24:40.123456123+3", NULL }; char *intervals[] = { "1 minute", @@ -145,7 +145,8 @@ main(void) sprintf(t, "%s %s", dates[i], times[j]); ts1 = PGTYPEStimestamp_from_asc(t, NULL); text = PGTYPEStimestamp_to_asc(ts1); - if (i != 19 || j != 3) /* timestamp as integer or double differ for this case */ + /* skip outputs sensitive to USE_INTEGER_DATETIMES */ + if (i != 19 || (j != 3 && j != 4)) printf("TS[%d,%d]: %s\n", i, j, errno ? "-" : text); free(text); diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout index 9a4587b..941bffb 100644 --- a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout +++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout @@ -103,7 +103,6 @@ Date[19]: 0099-01-08 BC (N - F) TS[19,0]: 0099-01-08 00:04:00 BC TS[19,1]: 0099-01-08 01:59:00 BC TS[19,2]: 0099-01-08 13:24:40 BC -TS[19,4]: 0099-01-08 13:24:40.123456 BC Date[20]: - (N - T) Date[21]: - (N - T) interval[0]: @ 1 min diff --git a/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc b/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc index a127dd9..0bd1fec 100644 --- a/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc +++ b/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc @@ -43,7 +43,7 @@ static char *times[] = { "0:04", "1:59 PDT", "13:24:40 -8:00", "13:24:40.495+3", - "13:24:40.123456789+3", + "13:24:40.123456123+3", NULL }; char *intervals[] = { "1 minute", @@ -110,7 +110,8 @@ main(void) sprintf(t, "%s %s", dates[i], times[j]); ts1 = PGTYPEStimestamp_from_asc(t, NULL); text = PGTYPEStimestamp_to_asc(ts1); - if (i != 19 || j != 3) /* timestamp as integer or double differ for this case */ + /* skip outputs sensitive to USE_INTEGER_DATETIMES */ + if (i != 19 || (j != 3 && j != 4)) printf("TS[%d,%d]: %s\n", i, j, errno ? "-" : text); free(text);

view thread (6+ messages)

Message-ID: <20140508025739.GC1355372@tornado.leadboat.com>
Permalink:  ../20140508025739.GC1355372@tornado.leadboat.com/
Also on:    postgresql.org/message-id/20140508025739.GC1355372@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: <20140508025739.GC1355372@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> <20140508025739.GC1355372@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