Re: SUM(int2)/SUM(int4) do not detect overflow of the int8 accumulator

From: Andrei Lepikhov <lepihov(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, Nathan Bossart <nathandbossart(at)gmail(dot)com>
Subject: Re: SUM(int2)/SUM(int4) do not detect overflow of the int8 accumulator
Date: 2026-09-07 11:52:00
Message-ID: 0d22246f-0f5d-4011-8b4c-47595cd13291@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 07/09/2026 10:25, Andrei Lepikhov wrote:
> Removed. Adding a regression test alongside a bug fix is just my default habit,
> so I followed it here without thinking it through - happy to drop them.
It looks like I mistakenly sent the old version as v2. Here is the actual
version (v3) of the patch.

--
regards, Andrei Lepikhov,
pgEdge

Attachment Content-Type Size
v3-0001-Detect-overflow-of-the-int8-accumulator-in-sum-an.patch text/plain 6.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message solai v 2026-09-07 12:20:38 Re: pg_rewind: Skip vanished source files during traversal
Previous Message Osama Abdul Qader 2026-09-07 11:50:24 Re: COALESCE patch