Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhksT-0006cS-A9 for pgsql-bugs@arkaria.postgresql.org; Tue, 06 May 2014 19:18:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WhksS-0001Jb-R1 for pgsql-bugs@arkaria.postgresql.org; Tue, 06 May 2014 19:18:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhksS-0001Iw-55 for pgsql-bugs@postgresql.org; Tue, 06 May 2014 19:18:08 +0000 Received: from mail-pd0-f170.google.com ([209.85.192.170]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhksP-0006Y9-Lk for pgsql-bugs@postgresql.org; Tue, 06 May 2014 19:18:07 +0000 Received: by mail-pd0-f170.google.com with SMTP id v10so3157162pde.1 for ; Tue, 06 May 2014 12:18:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:content-transfer-encoding:mime-version; bh=qk6MiK0Tbwn6j+5nXWkKmSKcR9eNmulua1YJ+EUsrIM=; b=gctgLc83EB2ETHZT1iY0R6wzBO33ZSSd9IdsuyMsTu9N3iaJMfM+6cSZbhQKtWzGue dVPcxjryJm8stPf2KbO9TF21MRhILCI1gqZNvWBjUkyhaWbKANYMYcEH5zuK97rsWIuy JQyP+box8kAyv007MO3m+6FQ0uUc4p7NpUDAyDGYl/eyKc+Pwlt8GIBaFW9n0LJQL21F EgbocVQ5FgrnxayMjxaDl93hK3UqW8T6ZDdWGBWaTpBMpigXFI5BPS/VVrS8qc+tbFV3 3xlprOrmTExwA4M171V8hbAFDunP3NLZfgcH+oio9wItzb4HcMgmbWx7/kp3xniq0dnH ZoWA== X-Gm-Message-State: ALoCoQk+H9jk0gNCvdfXGmhbvYh+5kZYEotcFpfAY2ct1Xc6cV8uYW3r/Xh/p/5ukHHk3n+c3sqQ X-Received: by 10.66.148.134 with SMTP id ts6mr9684433pab.113.1399403884247; Tue, 06 May 2014 12:18:04 -0700 (PDT) Received: from ?IPv6:::1? ([2600:3c01::f03c:91ff:fe93:2ae4]) by mx.google.com with ESMTPSA id ec2sm1977802pbc.63.2014.05.06.12.18.03 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 06 May 2014 12:18:03 -0700 (PDT) Message-ID: <1399403882.27807.40.camel@sussancws0025> Subject: Re: regression failure on master with --disable-integer-datetimes From: Jeff Davis To: Tom Lane Cc: pgsql-bugs@postgresql.org, Noah Misch Date: Tue, 06 May 2014 12:18:02 -0700 In-Reply-To: <2501.1399402111@sss.pgh.pa.us> References: <1399399313.27807.28.camel@sussancws0025> <2501.1399402111@sss.pgh.pa.us> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) 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, 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