From: pistole@rhp.org
To: pgsql-bugs@postgresql.org
Subject: BUG #14663: Unexpected rounding changes for money type divided by bigint
Date: Fri, 19 May 2017 16:46:53 +0000
Message-ID: <20170519164653.29941.19098@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14663
Logged by: Richard Pistole
Email address: pistole@rhp.org
PostgreSQL version: 10beta1
Operating system: Centos 7
Description:
Running the following query:
select 878.08::money/11::bigint;
Returns this following result in 9.6.3:
$79.83
In 10beta1, it returns:
$79.82
I think this may be related to this commit and doing the running sums as
negatives, but I'm not sure:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=656df624c0d7b50e1714f2a3a14e143e6...
--
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: pistole@rhp.org
Subject: Re: BUG #14663: Unexpected rounding changes for money type divided by bigint
In-Reply-To: <20170519164653.29941.19098@wrigleys.postgresql.org>
References: <20170519164653.29941.19098@wrigleys.postgresql.org>
* 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