model-writtenrun 3873 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported that an infinite-interval test exposed incorrect handling of zero minus INT64_MIN on platforms without integer overflow builtins or 128-bit integers: the fallback returned INT64_MIN instead of reporting overflow #1.
- Dean's patch changed the fallback condition from a > 0 to a >= 0, explained the zero case in a comment, and added a regression test expecting a bigint overflow error #1.
- Laurenz Albe reviewed the patch and said it looked good without requesting changes #2.
- Tom Lane also confirmed the fix was correct, leaving the thread at its final message with two positive reviews and no outstanding objections #3.
- Dean subsequently committed the patch unchanged as 0e3e8fbd3a, with backports to all supported branches and credits for Jian He's initial investigation and Laurenz Albe's and Tom Lane's reviews.