]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Trim regression test expected output for xml master github/master
authorMichael Paquier <michael@paquier.xyz>
Mon, 15 Jun 2026 02:37:52 +0000 (11:37 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 15 Jun 2026 02:37:52 +0000 (11:37 +0900)
commitb78cd2bda5b1a306e2877059011933de1d0fb735
treef9ef0aaad0f349eb7637e9a5d558037f77a108b5
parent2963ddeef2be6d6e064cb9d382f67dcbf2c049a8
Trim regression test expected output for xml

This commit reduces the number of expected output files for the "xml"
test from three to two (well, mostly one, see below for details).

xml_2.out existed to handle some differences in output due to libxml2
2.9.3, due to some error context missing (085423e3e326).  This file is
removed, by tweaking the XML inputs to trigger the same error patterns
for the problematic 2.9.3 and other libxml2 versions.  This part is
authored by Tom Lane.

xml_1.out (no libxml2 support) is reduced in size by adding an \if query
that exits the test early.  This still checks NO_XML_SUPPORT() through
xmlin().  The rest of the test is skipped if XML input cannot be
handled by the backend.  This part has been written by me.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Author: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/aiu6CXO67q-s70n5@paquier.xyz
Backpatch-through: 14
src/test/regress/expected/xml.out
src/test/regress/expected/xml_1.out
src/test/regress/expected/xml_2.out [deleted file]
src/test/regress/sql/xml.sql