model-writtenrun 437 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The bug report credited Zheng Wang, Yanjie Zhao, and Yiyang Liu with finding caller-triggered errors incorrectly reported as internal errors, and supplied reproductions and suggested SQLSTATE assignments in #1.
- Fujii Masao supplied #2, adopting the three suggested input-validation codes and choosing PROGRAM_LIMIT_EXCEEDED for exhausted statistics slots, with an initial proposal to backpatch through v18.
- Ayush Tiwari proposed incorporating additional fixes from a broader patch in #3 and updated its location in #4; Michael Paquier supported the improvement but recommended keeping the different areas separate and questioned the need for backpatching in #5.
- Ayush argued that applications depend on SQLSTATE values while accepting separate patches in #6; Fujii defended a v18 backpatch but offered v19 as a compatibility-preserving alternative in #7.
- Alexander Lakhin proposed collecting other user-reachable internal errors on a wiki in #8, and Michael suggested reporting them together in a new thread in #9; those additional cases remained outside this patch.
- Fujii reconsidered the backpatch scope after finding a precedent against changing error-code assignments in released branches, choosing v19 and excluding v18 in #10.
- Fujii committed the exact code from #2 as 398a6bdd93, updating the commit message's backpatch rationale, and confirmed the push and v19 backpatch in #11, completing this fix.