Fix cross-version upgrades with XMLSERIALIZE(NO INDENT)
authorMichael Paquier <michael@paquier.xyz>
Fri, 21 Feb 2025 11:37:38 +0000 (20:37 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 21 Feb 2025 11:37:38 +0000 (20:37 +0900)
commit514d47dfb69caec14b62b294f899b2e953cc2baa
tree05734c479cb3dfee412d949a850226f46f89af65
parent1c2a2354c3848d9f03dc627270bdca073a5a37bc
Fix cross-version upgrades with XMLSERIALIZE(NO INDENT)

Dumps from versions older than v16 do not know about NO INDENT in a
XMLSERIALIZE() clause.  This commit adjusts AdjustUpgrade.pm so as NO
INDENT is discarded in the contents of the new dump adjusted for
comparison when the old version is v15 or older.  This should be enough
to make the cross-version upgrade tests pass.

Per report from buildfarm member crake.  Oversight in 984410b92326.

Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/88b183f1-ebf9-4f51-9144-3704380ccae7@dunslane.net
Backpatch-through: 16
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm