model-writtenrun 6263 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kevin Sweet reported that PGTYPESnumeric_to_int incorrectly rejected -2147483648 and supplied an inline code and documentation fix using (-INT_MAX - 1) in #1.
- John Naylor chose INT_MIN for the lower bound in #2, and Tom Lane recommended guarding the range check with SIZEOF_LONG > SIZEOF_INT to avoid compiler warnings, after inspecting conversion to long, in #3.
- John posted the combined fix with regression tests for both integer bounds in #4, noting that back branches would need adjustments and that the bug existed at least as far back as PostgreSQL 9.6.
- Tom approved the patch by visual inspection in #5, explicitly noting that he had not run its test.
- John committed #4 unchanged as 5fcf3945bd, with backports to all supported branches, and closed the thread by confirming the push and promising to monitor the build farm in #6.