Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoeIH-0007Hc-JJ for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 21:50:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aoeIG-0007I5-Tn for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 21:50:20 +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 1aoeGv-0005XK-Tz for pgsql-hackers@postgresql.org; Fri, 08 Apr 2016 21:48:58 +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 1aoeGt-0000Ka-CO for pgsql-hackers@postgresql.org; Fri, 08 Apr 2016 21:48:56 +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 u38LmoG0031480; Fri, 8 Apr 2016 17:48:50 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@postgresql.org Subject: Re: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees. In-reply-to: <570311F1.6020902@gmx.net> References: <570311F1.6020902@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Mon, 04 Apr 2016 21:16:33 -0400" Date: Fri, 08 Apr 2016 17:48:50 -0400 Message-ID: <31479.1460152130@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 Peter Eisentraut writes: > On 01/22/2016 03:46 PM, Tom Lane wrote: >> Add trigonometric functions that work in degrees. > I have a host here that is having regression test failures from this commit: > --- src/test/regress/expected/float8.out > +++ src/test/regress/results/float8.out > @@ -490,9 +490,9 @@ > x | asind | acosd | atand > ------+-------+-------+------- > -1 | -90 | 180 | -45 > - -0.5 | -30 | 120 | > + -0.5 | | 120 | > 0 | 0 | 90 | 0 > - 0.5 | 30 | 60 | > + 0.5 | | 60 | > 1 | 90 | 0 | 45 > (5 rows) BTW ... looking closer at that, it appears to show asind(-0.5) and asind(0.5) returning NULL. Which makes no sense at all, because there is no provision in dasind() for returning a null, regardless of the input value. So I'm pretty baffled. Maybe you could step through this and figure out where it's going off the rails? 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