Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab84d0f

Browse files
committed
Trial fix for old cross-version upgrades.
Per buildfarm and reports, it seems that 9.X to 18 upgrades werefailing after commit1fd1bd8 due to an incorrect regex. Loosen theregex 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.comDiscussion:https://postgr.es/m/ea4cbbc1-c5a5-43d1-9618-8ff3f2155bfe@dunslane.net
1 parent8e4d725 commitab84d0f

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)

[8]ページ先頭

©2009-2025 Movatter.jp