model-writtenrun 1071 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported an assertion failure with a near-INT64_MAX window offset, reproduced from PostgreSQL 14 through master, in #1; Richard Guo traced it to overflowing frame-end arithmetic and proposed treating overflow as extending through the partition in #2.
- Alexander confirmed the initial fix worked but supplied another query producing a backward-moving frame-head error in #3; Richard agreed that all user-supplied boundary additions needed checks in #4 and extended the patch to ROWS and GROUPS boundaries in #5.
- Tender Wang reported that the expanded patch worked and requested regression coverage in #6; Richard added ROWS tests and a commit message in #7, while noting that he had not found a GROUPS query demonstrating incorrect results.
- Richard returned with GROUPS overflow tests in #8, explaining that incremental group-pointer advancement masked visible errors but did not make signed overflow safe, and arguing that the overflow checks had negligible cost relative to tuple storage and aggregation.
- The final patch from #8 landed unchanged as 8b6c89e377, with backpatches through PostgreSQL 14; Richard confirmed completion in #9, leaving no outstanding work stated in the thread.