model-writtenrun 4564 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- jian he reported that lead() with IGNORE NULLS and an INT_MIN offset returned incorrect results, supplying a patch that used pg_abs_s32(), widened internal counters, and added a regression test #1.
- After announcing a short delay #2, Tatsuo Ishii confirmed the bug and prepared jian he's patch for commit, preserving its C implementation while adjusting the regression test's style #3.
- Tatsuo added a lag() regression test and proposed committing the revised patch to master and PostgreSQL 19 #4.
- Kirill Reshke caught an incorrect Discussion link and raised a separate INT_MIN negation overflow in leadlag_common #5; Tatsuo explained that the latter predated IGNORE NULLS #6, and Kirill agreed to fix it separately #7.
- Tatsuo committed #4 as b8d82d1787 with only commit-message edits and a PostgreSQL 19 backport, then announced completion in #8; the separate leadlag_common overflow remained outside this fix.