Content-Length: 264938 | pFad | http://github.com/postgrespro/postgres/commit/310907aaf01053bbc00972a01438997b146b3fdd

01 Fix cross-version upgrades with XMLSERIALIZE(NO INDENT) · postgrespro/postgres@310907a · GitHub
Skip to content

Commit 310907a

Browse files
committed
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 984410b. Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/88b183f1-ebf9-4f51-9144-3704380ccae7@dunslane.net Backpatch-through: 16
1 parent 0ae1245 commit 310907a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,12 @@ sub adjust_new_dumpfile
627627
# Version comments will certainly not match.
628628
$dump =~ s/^-- Dumped from database version.*\n//mg;
629629

630+
# pre-v16 dumps do not know about XMLSERIALIZE(NO INDENT).
631+
if ($old_version < 16)
632+
{
633+
$dump =~ s/XMLSERIALIZE\((.*)? NO INDENT\)/XMLSERIALIZE\($1\)/mg;
634+
}
635+
630636
if ($old_version < 14)
631637
{
632638
# Suppress noise-word uses of IN in CREATE/ALTER PROCEDURE.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/310907aaf01053bbc00972a01438997b146b3fdd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy