Skip to content

Commit ab84d0f

Browse files
committed
Trial fix for old cross-version upgrades.
Per buildfarm and reports, it seems that 9.X to 18 upgrades were failing after commit 1fd1bd8 due to an incorrect regex. Loosen the regex to accommodate older versions. Reported-by: vignesh C <vignesh21@gmail.com> Reported-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/CALDaNm3GUs+U8Nt4S=V5zmb+K8-RfAc03vRENS0teeoq0Lc6Tw@mail.gmail.com Discussion: https://postgr.es/m/ea4cbbc1-c5a5-43d1-9618-8ff3f2155bfe@dunslane.net
1 parent 8e4d725 commit ab84d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ sub adjust_old_dumpfile
296296

297297
# Same with version argument to pg_restore_relation_stats() or
298298
# pg_restore_attribute_stats().
299-
$dump =~ s ['version', '${old_version}\d{4}'::integer,]
299+
$dump =~ s ['version', '\d+'::integer,]
300300
['version', '000000'::integer,]mg;
301301

302302
if ($old_version < 16)
@@ -633,7 +633,7 @@ sub adjust_new_dumpfile
633633

634634
# Same with version argument to pg_restore_relation_stats() or
635635
# pg_restore_attribute_stats().
636-
$dump =~ s ['version', '\d{6}'::integer,]
636+
$dump =~ s ['version', '\d+'::integer,]
637637
['version', '000000'::integer,]mg;
638638

639639
if ($old_version < 14)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy