Skip to content

Commit 8967c33

Browse files
Fix MSVC pg_upgrade test.
In the back-branch versions of commit 71ea0d6795, I missed updating this test to use --restrict-key so that the generated dump output is comparable. Per buildfarm member hamerkop. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Security: CVE-2025-8714 Backpatch-through: 13-14
1 parent e4998d0 commit 8967c33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/msvc/vcregress.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ sub upgradecheck
675675
# now we can chdir into the source dir
676676
chdir "$topdir/src/bin/pg_upgrade";
677677
print "\nDumping old cluster\n\n";
678-
@args = ('pg_dumpall', '-f', "$tmp_root/dump1.sql");
678+
@args = ('pg_dumpall', '-f', "$tmp_root/dump1.sql", '--restrict-key', 'test');
679679
system(@args) == 0 or exit 1;
680680
print "\nStopping old cluster\n\n";
681681
system("pg_ctl stop") == 0 or exit 1;
@@ -689,7 +689,7 @@ sub upgradecheck
689689
@args = ('pg_ctl', '-l', "$logdir/postmaster2.log", 'start');
690690
system(@args) == 0 or exit 1;
691691
print "\nDumping new cluster\n\n";
692-
@args = ('pg_dumpall', '-f', "$tmp_root/dump2.sql");
692+
@args = ('pg_dumpall', '-f', "$tmp_root/dump2.sql", '--restrict-key', 'test');
693693
system(@args) == 0 or exit 1;
694694
print "\nStopping new cluster\n\n";
695695
system("pg_ctl stop") == 0 or exit 1;

0 commit comments

Comments
 (0)