Re: Rounding to even for numeric data type

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Rounding to even for numeric data type
Date: 2015-03-28 05:16:17
Message-ID: 87vbhl1z5o.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

Tom> I think the concern over backwards compatibility here is probably
Tom> overblown; but if we're sufficiently worried about it, a possible
Tom> compromise is to invent a numeric_rounding_mode GUC, so that
Tom> people could get back the old behavior if they really care.

I only see one issue with this, but it's a nasty one: do we really want
to make all numeric operations that might do rounding stable rather than
immutable?

--
Andrew (irc:RhodiumToad)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2015-03-28 07:35:00 Re: Performance improvement for joins where outer side is unique
Previous Message Arthur Silva 2015-03-28 03:53:16 Re: GSoC 2015: SP-GIST for geometrical objects