Re: More inaccurate results from numeric pow()
Dean Rasheed <dean.a.rasheed@gmail.com>
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2016-05-05T10:24:31Z
Lists: pgsql-hackers
On 2 May 2016 at 18:38, Tom Lane <tgl@sss.pgh.pa.us> wrote: > I don't much care for the hardwired magic number here, especially since > exp_var() does not have its limit expressed as "6000" but as > "NUMERIC_MAX_RESULT_SCALE * 3". I think you should rephrase the limit > to use that expression, and also add something like this in exp_var(): OK, that makes sense. Done that way. Regards, Dean
Commits
-
Fix corner-case loss of precision in numeric pow() calculation
- 18a02ad2a506 9.6.0 landed