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 <[email protected]>
Author: Michael Paquier <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3928b7a520e3f2ffec26d644d60a467ac7558578

Modified Files
--------------
src/test/regress/expected/xml.out   |   56 +-
src/test/regress/expected/xml_1.out | 1490 +---------------------------
src/test/regress/expected/xml_2.out | 1872 -----------------------------------
src/test/regress/sql/xml.sql        |   21 +-
4 files changed, 52 insertions(+), 3387 deletions(-)

Reply via email to