model-writtenrun 3189 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Frank Streitzig reported XML regression failures after upgrading Arch Linux to libxml2 2.13.1 in #1; rebuilding did not help #3, and Erik Wienhold and Tom Lane reproduced the failures with XML support enabled on their systems #4 #5.
- Erik Wienhold proposed replacing xmlAddChild with xmlAddChildList and ignoring selected namespace return codes in #6; Tom Lane concluded the list-insertion API was longstanding and appropriate without a version guard #7, and committed that hunk alone as 066e8ac6ea.
- Erik Wienhold reported that the newer error-handler API did not help xmlParseBalancedChunkMemory #9, and Tom Lane traced the namespace failures to changed return-code behavior, reported the upstream bug, and proposed checking whether parsing returned nodes #10.
- Tom Lane corrected the workaround's handling of callers that do not request parsed nodes in #11, then replaced the workaround entirely with xmlParseInNodeContext and a dummy root to avoid both the bug and the older API's SAX1 dependency #12.
- The parser replacement from #12 landed as 6082b3d5d3, with shared parse options, parser-context allocation restricted to document parsing, and corresponding cleanup changes.
- For the remaining error-detail differences, Tom Lane considered terse regression output or an alternative expected file #12, but Erik Wienhold instead proposed suppressing the redundant well-balanced-chunk error and supplied additional malformed-XML tests #13.
- Tom Lane required suppression only after another error had already been recorded, preserving potentially meaningful standalone errors on older libxml2 versions #14; e7192486dd applied #13 with that guard and additional expected-output variants.
- Buildfarm failures showed that the new tests produced version-dependent diagnostics and that an older libxml2 could emit the suppressed error alone, validating the guard #15; Tom Lane removed only the new tests in 896cd266fd because maintaining more output variants was not justified.
- Erik Wienhold agreed with removing the tests in the final message #16, after the removal had landed; the functional fixes remained committed, with back-patching planned in #14.
- The subsequent combined back-branch commit a134baea7a carried the surviving parser and error-reporting fixes into supported branches, adapting them to older code and retaining the test removal; its commit message also identifies the XMLSERIALIZE fix as applicable to version 16 and later.