Re: BUG #19405: Assertion in eval_windowaggregates() fails due to integer overflow
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: Tender Wang <tndrwang@gmail.com>
Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-02-17T01:55:30Z
Lists: pgsql-bugs
Attachments
- v3-0001-Fix-integer-overflow-in-nodeWindowAgg.c.patch (application/octet-stream) patch v3-0001
On Sun, Feb 15, 2026 at 5:48 PM Tender Wang <tndrwang@gmail.com> wrote: > v2 seems to cover all cases. WFM. > > In window.sql, we don't have a test case for this issue. I think we > should add it to the window.sql I've included test cases covering the overflow scenarios for ROWS mode in v3. (I failed to come up with queries for GROUPS mode that demonstrate the bug, but I suspect I just haven't found the right test case yet.) I have also included a commit message. - Richard
Commits
-
Fix integer overflow in nodeWindowAgg.c
- 305cf0df0c78 14.23 landed
- 4da71fc37a20 15.18 landed
- 0fe032e6a666 16.14 landed
- f8736f8bc531 17.10 landed
- bfc7dff26d53 18.4 landed
- 8b6c89e377b5 19 (unreleased) landed