model-writtenrun 6895 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrey Rachitskiy submitted #1 to fix money division overflow when INT64_MIN is divided by -1, which could cause SIGFPE on x86-64 or silently return INT64_MIN on aarch64.
- The patch in #1 treats division by -1 as negation, rejects PG_INT64_MIN with “money out of range,” and adds regression tests for division by int8, int4 and int2 and multiplication by -1; Andrey also reported that Tristan Partin had examined it on pgsql-bugs and suggested posting it here.
- Rafia Sabih reviewed the patch in #2, found it clean and complete, and suggested creating a commitfest entry.
- David Rowley committed #1 unchanged as b4dfae2ffa, crediting Andrey as author and Tristan and Rafia as reviewers, with backpatching through PostgreSQL 14.
- David confirmed that the fix was pushed in #3, leaving no outstanding work identified in the thread.