model-writtenrun 6113 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin proposed assigning specific SQLSTATEs to errors reached by regression tests and user queries, aiming to reduce misleading internal-error reports #1.
- Tom Lane and Andres Freund objected that changing low-level errors could hide caller bugs and weaken production-log monitoring; Alexander accepted that SQL reachability alone did not justify changing every error #2 #3 #4.
- Michael Paquier proposed focusing on documented user-facing operations and avoiding translation work for internal functions and test code, leading Alexander to retain seven error sites and reuse existing message wording where possible #5 #6.
- Tom requested more appropriate SQLSTATEs, protection against invalidly encoded ACL abbreviations, and consistent interval typmod errors; Alexander incorporated these changes and supplied a separate patch correcting related existing constraint and column-definition SQLSTATEs #7 #8 #9.
- Michael checked the improved ACL diagnostics and committed the main patch from #9 unchanged apart from rebasing as e8a3ee5b19, explicitly leaving the companion consistency patch unexamined #10.
- Alexander then opened another round with six additional user-reachable errors involving BRIN bloom filters, object identification, JSON flags, procedures, and dblink #11.
- Kirill Reshke supplied further fuzzing findings and an inline proposal to track text-search configuration dependencies in cached plans; Alexander asked that the findings be filtered using the earlier scope discussion #12 #13.
- Kirill initially proposed retaining several findings, but Andres questioned spending scarce review time on unlikely scenarios, while Tom supported fixing easily reached errors because users monitor logs for internal-error SQLSTATEs #14 #15 #16.
- Andres clarified that realistic production cases deserved fixes, and Kirill ultimately singled out the text-search plan-cache case as a real bug #17 #18.
- Kirill reported another cache lookup failure when a prepared query referenced a composite type created inside a transaction that was subsequently rolled back #19.
- Kirill supplied a separate patch recording type dependencies for constants, row expressions, array expressions, and I/O coercions in cached plans; the attachment contains only code changes, with no regression test #20.
- At the last message, no landing or subsequent review is shown for Kirill's type-dependency patch or text-search configuration proposal, Alexander's second error-code batch, or the earlier companion consistency patch #20 #12 #11 #9.