Re: Numeric multiplication overflow errors
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-01T10:44:46Z
Lists: pgsql-hackers
On Thu, 1 Jul 2021 at 22:03, Dean Rasheed <dean.a.rasheed@gmail.com> wrote: > One other thing I'm wondering about is back-patching. I was originally > thinking of these as back-patchable bug fixes, but changing the binary > format of the aggregate serialization states feels dodgy for a > back-patch. I was wondering about that too. I'm not sure if any extensions might be using serial/deserial functions to communicate over multiple servers. As far as I know, Citus does not do this and implements aggregates like AVG(c) over multi-nodes with SUM(c) + COUNT(c). I'm pretty sure Citus is not the only extension doing that kind of work. So perhaps other people are using the serial/deserial functions. David
Commits
-
Fix numeric_mul() overflow due to too many digits after decimal point.
- f8abf6944b12 9.6.23 landed
- 54a0ec1bd6d5 10.18 landed
- 5763ef42c187 11.13 landed
- 357b66ef9470 12.8 landed
- f23a9b8a49af 13.4 landed
- 06883d58ff29 14.0 landed
- e7fc488ad67c 15.0 landed
-
Prevent numeric overflows in parallel numeric aggregates.
- f025f2390e13 15.0 landed