Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asXeJ-0005Xd-PP for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2016 15:33:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1asXeI-00076D-ON for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2016 15:33:10 +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 1asXeH-00075b-Cu for pgsql-hackers@postgresql.org; Tue, 19 Apr 2016 15:33:09 +0000 Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1asXeE-0003NZ-FS for pgsql-hackers@postgresql.org; Tue, 19 Apr 2016 15:33:08 +0000 Received: by mail-vk0-x22d.google.com with SMTP id e185so23660180vkb.1 for ; Tue, 19 Apr 2016 08:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=93PXl9EgcodY3huVpg7flv2Ni7i2LzowmFhhabHsJos=; b=x3c1HqK79QAxlNGjVytoZWFaepW6/hHh1ZRx6La1dwx2GfRPwcaj0R7kQ/4nINaQZ8 yVnKt5XdkbctChd+S0B4GOrwURpQgqEY2pt7t6UuvdlTyDexo/LZqA7IPYF9LQpShhoI lydPiXUtFzftfJXE+BPT1CGzZLuNKYVeZYTGl7gClFtwtO1mOQXfT8/RobJbFzkCdtuQ PwCZ4bufklTIVnFKGj9sPkXsANqIU/cHiXFc6pVqYMNOc3wTIvTTlIDJlGfAq8abobrF g3E3WYmiZt2N87WFHYU5ne6Jm0N/bcfqhAhZF3nkA01ZG23o3PYo11VJCB5VbR+Lx08k 52GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=93PXl9EgcodY3huVpg7flv2Ni7i2LzowmFhhabHsJos=; b=KRn2fmJeX6rtg3iXT6Abbkn+xPsVXomigqt+bteY7D+0iD+wA+otaOMy/1KU7YV+Um /GIJ2h8J+62eAp37YYVEmJfHOVsU4nwTMzUmJ6PD1NANFTo2zKGqgFQnnfjn4KN6T665 6JKJ/Um7Fy96LnkFnKdm8lodIrjZLfDveoZJvWXqlP0cjx7L98a1zdEbDF6Xutgv8HM6 A4RcDv2yU2mpzlJu0+DOSizER45POV+RxpSEAUlWz9/FvLnIw59f/EcgZrGa6T0tb2h1 E0Rov7G+GDitmJKshBVoQ0ouud0SqAT1wiEm2p8aH0ThiAssOIQGa5kuNpxMJYC6ITr1 yXEQ== X-Gm-Message-State: AOPr4FWQkRZAECCh5+8zwteS4oFD+KFHXP3OEh4mbvHxa+2GWZNfmt7jsLEHosowHbgo2OnDXWmNKSJXxz7txw== MIME-Version: 1.0 X-Received: by 10.31.5.134 with SMTP id 128mr1886165vkf.29.1461079985348; Tue, 19 Apr 2016 08:33:05 -0700 (PDT) Received: by 10.159.35.40 with HTTP; Tue, 19 Apr 2016 08:33:04 -0700 (PDT) In-Reply-To: <18241.1461073100@sss.pgh.pa.us> 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> <32425.1461038215@sss.pgh.pa.us> <20160419041631.GC1983345@tornado.leadboat.com> <18241.1461073100@sss.pgh.pa.us> Date: Tue, 19 Apr 2016 16:33:04 +0100 Message-ID: Subject: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees. From: Dean Rasheed To: Tom Lane Cc: Noah Misch , Michael Paquier , Peter Eisentraut , Robert Haas , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) 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 On 19 April 2016 at 14:38, Tom Lane wrote: > Yeah, what I was thinking of printing is something like > > asind(x), > asind(x) IN (-90,-30,0,30,90) AS asind_exact, > ... > > with extra_float_digits=3. The point of this is not necessarily to give > any extra information, though it might, but for failures to be more easily > interpretable. If I'd forgotten how the test worked just a few months > after committing it, how likely is it that some random user faced with a > similar failure would understand what they were seeing? > > Also, though I agree that it might not help much to know whether the > output is 45.0000000000000001 or 44.9999999999999999, our thoughts would > be trending in quite a different direction if it turns out that the > output is radically wrong, or even a NaN. The existing test cannot > exclude that possibility. > OK, that sounds like it would be a useful improvement to the tests. Regards, Dean -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers