Jul 2024

5 commits
Make our back branches compatible with libxml2 2.13.x.
11 Jul 2024Tom LaneREL_17_STABLE17beta3REL_16_STABLE16.4REL_15_STABLE15.8REL_14_STABLE14.13REL_13_STABLE13.16REL_12_STABLE12.20
LLM analysis, 97% suremodified before commitsignificant changesfrom patchset #131 of 1 reviewer saw the final version

This combined back-branch change incorporates the parser replacement from #12 and guarded error suppression derived from #13, the latest contributing patchset. Its src/backend/utils/adt/xml.c adapts node disposal to the older API, while expected/xml.out and expected/xml_2.out retain suppression changes without the subsequently removed tests.

  • Tom Lanesaw the final versioncommittercommitted the patch
Remove new XML test cases added by e7192486d.
9 Jul 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

This implements Tom Lane's proposal in #15 to remove the new tests after buildfarm failures, deleting them from sql/xml.sql and all three expected-output variants without an attached removal patch. Erik Wienhold's agreement in #16 followed the commit and therefore does not qualify as a pre-commit review.

Suppress "chunk is not well balanced" errors from libxml2.
9 Jul 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #131 of 1 reviewer saw the final version

The commit retains the suppression and tests from #13, but requires xmlerrcxt->err_occurred before ignoring XML_ERR_NOT_WELL_BALANCED, as proposed in #14. It also updates expected/xml_1.out and expected/xml_2.out, which the attachment omitted.

  • Tom Lanesaw the final versioncommittercommitted the patch
Use xmlParseInNodeContext not xmlParseBalancedChunkMemory.
8 Jul 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #12

The dummy-root xmlParseInNodeContext implementation matches #12, with additional changes in xml_parse to share parse options, allocate the parser context only in document mode, and guard its final cleanup. Comments also clarify ownership of returned nodes.

Use xmlAddChildList not xmlAddChild in XMLSERIALIZE.
6 Jul 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #61 of 1 reviewer saw the final version

The commit takes exactly the xmlAddChild-to-xmlAddChildList substitution in xmltotext_with_options from #6, leaving out that attachment's namespace-error workaround.

  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 5 commits

Author
Erik WienholdLLM3
Tom LaneLLM1
Reviewer
Tom Lanecommitter3
Committer
Tom Lane5

N LLM means N of the credits come from LLM analysis, not from commit trailers.