model-writtenrun 2974 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed consistent XML error reporting in #1, using SQLSTATE 10608 for XPath compilation and execution failures, correcting other XML error classifications, and leaving detailed translation of libxml2 error codes for future work.
- Tom rebased the patch without functional changes in #2, and Daniel Gustafsson endorsed it while questioning the remaining INTERNAL_ERROR classification in xml_out_internal() in #3.
- Tom initially argued that invalid stored XML declarations could reflect corruption, missing validation or changed library behavior in #4; Daniel favored DATA_CORRUPTED because it would help fleet analysis in #5.
- Tom committed #2 with the additional DATA_CORRUPTED change as cd838e2008 and thanked Daniel for reviewing in #6.
- Months after landing, Peter Eisentraut questioned the claimed SQL-standard origin of SQLSTATE 10608 in #7; Tom identified DB2 as his likely source in #8, and Chapman Flack reported that ISO reserves class 10 without defining subclasses in #9, leaving that standards question unresolved with no further patch attached.