Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bf9eC-0004UD-8R for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2016 17:50:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bf9eB-0001I4-Ri for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2016 17:49:59 +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 1bf9co-0008CW-0H for pgsql-hackers@postgresql.org; Wed, 31 Aug 2016 17:48:34 +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 1bf9ck-0002KR-6Z for pgsql-hackers@postgresql.org; Wed, 31 Aug 2016 17:48:32 +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 u7VHmIur006494; Wed, 31 Aug 2016 13:48:18 -0400 From: Tom Lane To: Heikki Linnakangas cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Use static inline functions for float <-> Datum conversions. In-reply-to: <8e543348-89d0-02c0-21d3-65c3bb042294@iki.fi> References: <4640.1472664476@sss.pgh.pa.us> <8e543348-89d0-02c0-21d3-65c3bb042294@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 31 Aug 2016 20:42:58 +0300" Date: Wed, 31 Aug 2016 13:48:18 -0400 Message-ID: <6493.1472665698@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) 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 Heikki Linnakangas writes: > On 08/31/2016 08:27 PM, Tom Lane wrote: >> We had a bunch of similar problems in the recent work on exact degree trig >> functions, and eventually found that storing values into volatile float8 >> variables was the most reliable way to force rounding to the expected >> storage width. I propose to replace the above hack with declaring >> newelemorder as volatile, and see if that makes things better. > Sounds reasonable. None of this is supposed to be necessary, we're just > working around broken compilers, so whatever works. > I'll prepare a patch for that tomorrow, unless you're on it already. On it already. 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