Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhlDb-0007Rj-EL for pgsql-bugs@arkaria.postgresql.org; Tue, 06 May 2014 19:39:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WhlDa-0007Ym-TP for pgsql-bugs@arkaria.postgresql.org; Tue, 06 May 2014 19:39:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhlDa-0007XX-28 for pgsql-bugs@postgresql.org; Tue, 06 May 2014 19:39:58 +0000 Received: from mail-yh0-f49.google.com ([209.85.213.49]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhlDW-0006uK-Rr for pgsql-bugs@postgresql.org; Tue, 06 May 2014 19:39:57 +0000 Received: by mail-yh0-f49.google.com with SMTP id c41so1124234yho.36 for ; Tue, 06 May 2014 12:39:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=ntz0qNWkw4WMtTxK+JLs4MlSozqX1u6uMVn6CFd/V+g=; b=gLsKCoMdWGUqw4gKX3BFgko3onpDu62qhoQZz3tow1PLsFaiQn5xG4c2z/3/963Ca0 5mHtNNdCsAPB70VXf62hlgB73/pqQhjB3LbaGCEhK3BxTPXFiVBvtBXXx8bmmwT9RevE OyNNEWZ6E7wf2AiLP6cBNNxFuu86/S9xwt4ei8FE0ltGY6fRuKLZkDg5RWpJH16X1STr asTeIzcpPAXujBRCp7fvunqoIPRzMWTW+WCNMsLWouKwJg+1DcewLbD6LSfeitB2hvlk VVZE9laKl6lHuU6690Z5Vd24DIGy/sIhUg5eZi2rHUEKJjJrjBiuKGe7fejONRbWDxLy ubnQ== X-Gm-Message-State: ALoCoQlD4so7oqIYIuoGN4P7Stz25BpjrcoVYA9BwwMyFiBw2Eu0fHV4sTd4Pl+5Gwhe2ZKiq1oC X-Received: by 10.236.99.99 with SMTP id w63mr61943609yhf.52.1399405194096; Tue, 06 May 2014 12:39:54 -0700 (PDT) Received: from tornado.leadboat.com (c-107-4-219-91.hsd1.va.comcast.net. [107.4.219.91]) by mx.google.com with ESMTPSA id d44sm23479795yhf.21.2014.05.06.12.39.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 06 May 2014 12:39:53 -0700 (PDT) Date: Tue, 6 May 2014 15:39:52 -0400 From: Noah Misch To: Jeff Davis Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: regression failure on master with --disable-integer-datetimes Message-ID: <20140506193952.GA1313980@tornado.leadboat.com> References: <1399399313.27807.28.camel@sussancws0025> <2501.1399402111@sss.pgh.pa.us> <1399403882.27807.40.camel@sussancws0025> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1399403882.27807.40.camel@sussancws0025> User-Agent: Mutt/1.5.21 (2010-09-15) 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 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: --- 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