Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anFbs-0001yz-D4 for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Apr 2016 01:16:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anFbr-00060a-ES for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Apr 2016 01:16:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anFbq-0005zp-Ab for pgsql-hackers@postgresql.org; Tue, 05 Apr 2016 01:16:46 +0000 Received: from mout.gmx.net ([212.227.15.15]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1anFbi-0004Ug-LQ for pgsql-hackers@postgresql.org; Tue, 05 Apr 2016 01:16:45 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MJSLz-1aodS425T1-0033Gw for ; Tue, 05 Apr 2016 03:16:35 +0200 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 1DEA020B70 for ; Mon, 4 Apr 2016 21:16:34 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 04 Apr 2016 21:16:34 -0400 X-Sasl-enc: IS+pwK2HYcUNlOGcoKFVfy9084DK7HZD+inMXuXMDbq1 1459818993 Received: from vanquo.pezone.net (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id D8CF3C00012; Mon, 4 Apr 2016 21:16:33 -0400 (EDT) Message-ID: <570311F1.6020902@gmx.net> Date: Mon, 04 Apr 2016 21:16:33 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees. References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:9Zcxb2VqCk9Jmrw8jVAgNIwPhn/C1OBlfvJF+UGP+Kl6JColmaV lI01XKIhbJchKcdv+2YuyD7bSZi7l1vbOZ0XewCcGeu4ROE9OgXrpgenaZLCz9hIXCS1VWQ LmLi+Wps9mGZUzYAQsmUTjjcIF2LWJxSfmh6AWtnkexR9R5n/3naV1smemiebHJrrd6r8aR JaY8qGUjiglLqojXD4VJQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:AbG8It3lJ5Q=:ayF/Xp+3SLkUVCkIP3LVrb pcaNigZZ8N33mDOPXgLRKuU6V9jUjE9nMzkDXESO3t6eb5KZcOsK8MstQTx6BQEQRflYvjUuH rgFlKqKglvqzzkk4obv4wqO/1d4aU0YvfzONFuB/OhwC8FVw5oRSvHQfYQiQ7m0OvukD0qQX1 EuyItyql0V717R+4OmA75fbzVJ6PjER33sZL51G7yopnRGf+yx7jrANBsAnn4cHvudUn5y5Wj +6VFumncTrbDzSDe6BdH6x4/dxvYOoADM6p4BpQBX59+YTjSTlOk5Rr//lGN8Uxn2IiPkLvk3 mCEv3JfGDiZRMa9xRysGPsRwC46PwTt3yHcvazbGp2pv0sy1895MIU4y13URcd7s40v1DNpsz fPQZfyBwFClCljA2343iAcZEuGwDmHuaLLdA0ifdU6Eh5m11KWC1J+pzMioRyiGqRX0VGJBN8 8qpZykwkgcV55hxlInS45g/4aqSuQD5+pU0zWAs1uDOJK7gZTxTW4nsnfhF2tgQDeAgkB6yxF Qh9qBM7AFnGyJIEt9XQMg/eIn72J2cIwq/KySlKQ0/hdvbazcNEFn1+DvXUVycTyV98kMwzI/ bPiA3APaVhlSlvjNS3tBM9/AULcYPlRKLJtpMStMfUU0I0m461TJtzJxzoKi/tWCDoJoERP4P fxUeUohRQcIqe61vJ+RkIt7YdQSpW5i61+GeX0EVzXlEFgev2qHxE2AXjm1XjfYDkLuq6afmi qIiMBWqWobopGZXYWbQTzzFfJN3tMJX4HxA0csh+3qSFqHNOvAB2Pn3KX3FVIBrAMZdqsSAza 6Dd2wl/ X-Pg-Spam-Score: -3.6 (---) 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 01/22/2016 03:46 PM, Tom Lane wrote: > Add trigonometric functions that work in degrees. > > The implementations go to some lengths to deliver exact results for values > where an exact result can be expected, such as sind(30) = 0.5 exactly. 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) Any ideas? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers