Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asMnz-00083a-Fn for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2016 03:58:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1asMny-0004QL-Mh for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2016 03:58:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asMmd-0002ui-VY for pgsql-hackers@postgresql.org; Tue, 19 Apr 2016 03:57:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asMmb-0005mG-FQ for pgsql-hackers@postgresql.org; Tue, 19 Apr 2016 03:57:02 +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 u3J3ut85032426; Mon, 18 Apr 2016 23:56:55 -0400 From: Tom Lane To: Noah Misch cc: Michael Paquier , Peter Eisentraut , Robert Haas , Dean Rasheed , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees. In-reply-to: <20160419024950.GB1983345@tornado.leadboat.com> References: <570311F1.6020902@gmx.net> <31479.1460152130@sss.pgh.pa.us> <5714552B.5030001@gmx.net> <12238.1460985466@sss.pgh.pa.us> <20160419021144.GA1984253@tornado.leadboat.com> <20830.1461032579@sss.pgh.pa.us> <20160419024950.GB1983345@tornado.leadboat.com> Comments: In-reply-to Noah Misch message dated "Mon, 18 Apr 2016 22:49:50 -0400" Date: Mon, 18 Apr 2016 23:56:55 -0400 Message-ID: <32425.1461038215@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Noah Misch writes: > On Mon, Apr 18, 2016 at 10:22:59PM -0400, Tom Lane wrote: >> We could alternatively set extra_float_digits to its max value and hope >> that off-by-one-in-the-last-place values would get printed as something >> visibly different from the exact result. I'm not sure I want to trust >> that that works reliably; but maybe it would be worth printing the >> result both ways, just to provide additional info when there's a failure. > We'd have an independent problem if extra_float_digits=3 prints the same > digits for distinguishable float values, so I wouldn't mind relying on it not > to do that. But can we expect the extra_float_digits=3 representation of > those particular values to be the same for every implementation? Hm? The expected answer is exact (30, 45, or whatever) in each case. If we get some residual low-order digits then it's a failure, so we don't need to worry about whether it's the same failure everywhere. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers