model-writtenrun 6897 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Malis reported that dividing the minimum money value by -1 produced a floating-point exception on x86-64 and silently returned the wrong negative value on aarch64, requesting overflow handling consistent with bigint division #1.
- Andrey Rachitskiy supplied a patch that handles division by -1 as negation, rejects the minimum value with “money out of range,” and adds tests for division by int8, int4 and int2 plus multiplication by -1 #2.
- Tristan Partin approved the patch and its tests, while suggesting that it should be sent to pgsql-hackers #3.
- Andrey Rachitskiy subsequently posted the matching patch as #1149279 in thread #253247, making that later submission the source for commit attribution.
- Laurenz Albe and Michael Paquier clarified that submitting patches to pgsql-bugs was valid and that a commitfest entry could track the existing discussion without duplicating it #4 #5.
- David Rowley committed the unchanged fix as b4dfae2ffa, attributed to the later submission #1149279 in thread #253247, with backpatching through PostgreSQL 14, and closed this thread by announcing that it was pushed #6.