model-writtenrun 3013 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jim Jones reported that whitespace between XML elements prevents XMLSERIALIZE(... INDENT) from indenting them and proposed disabling whitespace preservation during parsing in #1.
- Jim Jones added DOCUMENT and CONTENT regression tests while retaining the original implementation in #2.
- Jim Jones then identified inconsistent trailing newlines between DOCUMENT and CONTENT serialization in #3; Tom Lane recommended checking for trailing CR/LF characters rather than blindly dropping the last character and reported that trailing whitespace can be meaningful in CONTENT mode in #4.
- Jim Jones retained the indentation fix and added a second patch stripping trailing CR/LF characters only in DOCUMENT mode, with updated expected outputs, in #5.
- Tom Lane committed both fixes as 06c285018a, with backpatching through PostgreSQL 16, and confirmed completion in #6, explaining that he also removed writes into libxml2's const buffer; no submitted work remained outstanding.