From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: rschaaf@commoninf.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12885: The result of casting a double to an integer depends on the database version
Date: Mon, 23 Mar 2015 23:12:00 -0400
Message-ID: <26862.1427166720@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqRHostL3woG9uV5ZJDH5NwvOcNiU91LQ13W5emL4iRcaw@mail.gmail.com>
References: <20150320194337.2573.72944@wrigleys.postgresql.org>
<32478.1427122083@sss.pgh.pa.us>
<CAB7nPqQjby+5wAc-gcD77HZRA44CJpbxrD9t83s8C7cT7D5o9g@mail.gmail.com>
<CAB7nPqRHostL3woG9uV5ZJDH5NwvOcNiU91LQ13W5emL4iRcaw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Tue, Mar 24, 2015 at 11:27 AM, Michael Paquier wrote:
>> On a Windows 7 box with code compiled with MSVC 2010 I am seeing the
>> same behavior as Rich. This looks like a bug in ~9.3 that meritates
>> some attention assuming that the latter behavior is legit.
> And MinGW outputs the latter, similarly to other platforms... I'll investigate.
Look for something about setting the IEEE float rounding mode. "Round to
nearest even" is standard in most places, but it would not astonish me
to hear that Microsoft got that wrong.
If it is wrong I don't know that we'd want to back-patch a behavioral
change, but I'd definitely vote for conforming to the norm in 9.5
and later.
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, rschaaf@commoninf.com
Subject: Re: BUG #12885: The result of casting a double to an integer depends on the database version
In-Reply-To: <26862.1427166720@sss.pgh.pa.us>
References: <20150320194337.2573.72944@wrigleys.postgresql.org> <32478.1427122083@sss.pgh.pa.us> <CAB7nPqQjby+5wAc-gcD77HZRA44CJpbxrD9t83s8C7cT7D5o9g@mail.gmail.com> <CAB7nPqRHostL3woG9uV5ZJDH5NwvOcNiU91LQ13W5emL4iRcaw@mail.gmail.com> <26862.1427166720@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox