Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YamRj-0000ub-V9 for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 14:38:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YamRj-00039L-5B for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 14:38:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YamRT-0002j1-EQ for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 14:37:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YamRM-00010H-Db for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 14:37:54 +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 t2PEbcsa003737; Wed, 25 Mar 2015 10:37:39 -0400 From: Tom Lane To: Michael Paquier cc: Pedro Gimeno , rschaaf@commoninf.com, pgsql-bugs@postgresql.org Subject: Re: Re: BUG #12885: The result of casting a double to an integer depends on the database version In-reply-to: References: <20150320194337.2573.72944@wrigleys.postgresql.org> <32478.1427122083@sss.pgh.pa.us> <26862.1427166720@sss.pgh.pa.us> <13096.1427204266@sss.pgh.pa.us> <55121967.90308@personal.formauri.es> <55129971.2070208@personal.formauri.es> Comments: In-reply-to Michael Paquier message dated "Wed, 25 Mar 2015 20:46:14 +0900" Date: Wed, 25 Mar 2015 10:37:38 -0400 Message-ID: <3736.1427294258@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier writes: > On Wed, Mar 25, 2015 at 8:18 PM, Pedro Gimeno > wrote: >> The only point of using copysign there was to deal with a negative zero >> corner case. The attached removes copysign from the test program too, >> relying instead on sprintf outputting the sign of minus zero when available. > Cool, thanks. Applied to the code tree of Postgres, it gives the patch attached. This is pretty desperately in need of some comments, but I'll see what I can do with it. I assume the consensus is that we should not back-patch this? It seems like the kind of behavioral change that people might get annoyed about. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs