Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atKZO-0000Q3-5y for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Apr 2016 19:47:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1atKZN-0008Ts-OU for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Apr 2016 19:47:21 +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 1atKZK-0008Rc-VP for pgsql-hackers@postgresql.org; Thu, 21 Apr 2016 19:47:19 +0000 Received: from mout.gmx.net ([212.227.17.20]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1atKZI-0002uP-32 for pgsql-hackers@postgresql.org; Thu, 21 Apr 2016 19:47:17 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MELdk-1avVNI2gq8-00FSQg for ; Thu, 21 Apr 2016 21:47:12 +0200 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id BF783206B4 for ; Thu, 21 Apr 2016 15:47:09 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Thu, 21 Apr 2016 15:47:09 -0400 X-Sasl-enc: EDDG6iiEGWi6eqGSVmLQJMgZzOkgC/r8H/xhrVezTKY7 1461268029 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 7569CC0001A; Thu, 21 Apr 2016 15:47:09 -0400 (EDT) Subject: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees. To: Tom Lane , Dean Rasheed 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> <12182.1461098908@sss.pgh.pa.us> Cc: Noah Misch , Michael Paquier , Robert Haas , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Message-ID: <57192E3C.9040109@gmx.net> Date: Thu, 21 Apr 2016 15:47:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <12182.1461098908@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:v+bTrO1crZ7xIqzB0s9K8NlMpb08zFH93liDBJu+HRnLFSBaQ85 C5HCPGAMxb5uWWzcj0TOsp8zQYtEH/O5sP3L2hAAbN4ZO5zPaAUj4hUeoK0MWYNUoPY5Cjt bKroWo4PbRPd06jD5wBV9OZhrJO5RovQ5+6h3GKDdXX4k1R01WE4vXc0rfc7DEFzgSqI7/u qTYTe4lL1/CeP8GPBX7QA== X-UI-Out-Filterresults: notjunk:1;V01:K0:NbSvxWei6F0=:8+3pgAHcKkTL+wJPavBVT8 1mai8M1vjuVbHpa8/EGkrPKOHmyRgs4BOhK7XVvvaj1hZN6T2uJOBTKCtfAatVgPp+EY3rkfh 6wTld5RJ7sgsYQ43/pBAiRTgrmIyz8NJZ970v0VsAGAo0gGz2/W9YtZjXo07flwp/NrnO6Twf /0mv0mzqpnsLomNEvqXGvOfb/Y0Eoft5InyGHHBJBsfIn4N1d+7nM8ds+6KABoBmPAkVKays4 BbuocDN+AtxEu75Rp06PI28cDDlMRP6bWhafN3Z9cGgjTMCCIuSfBBJahOpogrBaIvRpPLzoo HkZYhdquruwsYT63z5idfBD0RHdforKw3cV9pxXI4qG09Po2RwlU5IcyPAhEzdFQQtSxuvJdF vQPQnrgETmNGOgvWaIkABDzoSFUIGozDz9jmqi839P9FPB8/KxbTRyk7bdYo/B7kgzYN5iWds Fd2AkdMZZHJGkHkgxzvXndvX6qGzotNCdvO3FcKCRFCoc48DfLsNd/haSN/zPwFDySpGmgRXO +5zZmQItRbyOHKpUOV55gdYMjLoKhtH1jFvBRFo8myc3VYslAiPDEqFDJCWPkQfp1MxJwjv+J n7O8aDPxu6MqQUrEQ65f7aWKMGwL4lrNZIP8m7LMLlEINPFO7MgJWCHIa2826hz1bQgKI9oFJ 0jqLra6y1/8C1CvuiagANedj7leXs1fr0Ok0C3LUpOrw7pvXKrXj3pokkWb1gNRuYuTEUff2d A2GFPg+fYZ9MNQnvmZzQBr8J2xwT5KbSBkcIwcoRs2LgXboWN3k7OmMNx9dRmEuEcTIYJ9QOm N+qITPg 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 04/19/2016 04:48 PM, Tom Lane wrote: > Pushed. Peter, what results do you get from these tests on your > problematic machine? acosd(x), acosd(x) IN (0,60,90,120,180) AS acosd_exact FROM (VALUES (-1), (-0.5), (0), (0.5), (1)) AS t(x); - x | asind | asind_exact | acosd | acosd_exact -------+-------+-------------+-------+------------- - -1 | -90 | t | 180 | t - -0.5 | -30 | t | 120 | t - 0 | 0 | t | 90 | t - 0.5 | 30 | t | 60 | t - 1 | 90 | t | 0 | t + x | asind | asind_exact | acosd | acosd_exact +------+----------------------+-------------+-------+------------- + -1 | -90 | t | 180 | t + -0.5 | -29.9999999999999964 | f | 120 | t + 0 | 0 | t | 90 | t + 0.5 | 29.9999999999999964 | f | 60 | t + 1 | 90 | t | 0 | t (5 rows) This is the same under the default -O2 and under -O0. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers