Skip to content

Commit 27d3dee

Browse files
Fix MSVC pg_upgrade test.
In the back-branch versions of commit 71ea0d6, 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 c204bd3 commit 27d3dee

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
@@ -644,7 +644,7 @@ sub upgradecheck
644644
# now we can chdir into the source dir
645645
chdir "$topdir/src/bin/pg_upgrade";
646646
print "\nDumping old cluster\n\n";
647-
@args = ('pg_dumpall', '-f', "$tmp_root/dump1.sql");
647+
@args = ('pg_dumpall', '-f', "$tmp_root/dump1.sql", '--restrict-key', 'test');
648648
system(@args) == 0 or exit 1;
649649
print "\nStopping old cluster\n\n";
650650
system("pg_ctl stop") == 0 or exit 1;
@@ -660,7 +660,7 @@ sub upgradecheck
660660
print "\nSetting up stats on new cluster\n\n";
661661
system(".\\analyze_new_cluster.bat") == 0 or exit 1;
662662
print "\nDumping new cluster\n\n";
663-
@args = ('pg_dumpall', '-f', "$tmp_root/dump2.sql");
663+
@args = ('pg_dumpall', '-f', "$tmp_root/dump2.sql", '--restrict-key', 'test');
664664
system(@args) == 0 or exit 1;
665665
print "\nStopping new cluster\n\n";
666666
system("pg_ctl stop") == 0 or exit 1;

0 commit comments

Comments
 (0)