Re: BUG #12885: The result of casting a double to an integer depends on the database version - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #12885: The result of casting a double to an integer depends on the database version
Date
Msg-id CAB7nPqQ=as+tSE6kA36RLpbueb__Zj_=L+wWonKMH5-nczj3yg@mail.gmail.com
Whole thread Raw
In response to BUG #12885: The result of casting a double to an integer depends on the database version  (rschaaf@commoninf.com)
Responses Re: Re: BUG #12885: The result of casting a double to an integer depends on the database version  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Wed, Mar 25, 2015 at 8:18 PM, Pedro Gimeno
<pgsql-004@personal.formauri.es> wrote:
> Michael Paquier wrote, On 2015-03-25 04:26:
>> copysign is not that portable, at least it is not in the MSVC world.
>> So as a patch you would get something like the attached with what you
>> 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.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Sékine Coulibaly
Date:
Subject: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication
Next
From: Kevin Grittner
Date:
Subject: Re: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication