Skip to content

Commit 06623df

Browse files
committed
Allow a few seconds for Windows to catch up with a directory rename when checking pg_upgrade.
1 parent 93b6d78 commit 06623df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/msvc/vcregress.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ sub upgradecheck
242242
# Much of this comes from the pg_upgrade test.sh script,
243243
# but it only covers the --install case, and not the case
244244
# where the old and new source or bin dirs are different.
245-
# i.e. only the this version to this version check. That's
245+
# i.e. only this version to this version check. That's
246246
# what pg_upgrade's "make check" does.
247247

248248
$ENV{PGPORT} ||= 50432;
@@ -273,6 +273,9 @@ sub upgradecheck
273273
print "\nStopping old cluster\n\n";
274274
system("pg_ctl -m fast stop") == 0 or exit 1;
275275
rename $data, "$data.old";
276+
# take a breather in case Windows hasn't quite got
277+
# the message about the directory moving
278+
sleep(5);
276279
print "\nSetting up new cluster\n\n";
277280
system("initdb") == 0 or exit 1;
278281
print "\nRunning pg_upgrade\n\n";

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