Skip to content

Commit b7f8465

Browse files
committed
Avoid renaming data directory during MSVC upgrade testing.
This appears to cause some intermittent file system problems on Windows 8. Instead, set up the old data directory in its intended final location to start with.
1 parent cdc6793 commit b7f8465

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tools/msvc/vcregress.pl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ sub upgradecheck
257257
("$tmp_install/bin", "$tmp_install/lib", $topdir, $topdir);
258258
$ENV{PATH} = "$bindir;$ENV{PATH}";
259259
my $data = "$tmp_root/data";
260-
$ENV{PGDATA} = $data;
260+
$ENV{PGDATA} = "$data.old";
261261
my $logdir = "$topdir/contrib/pg_upgrade/log";
262262
(mkdir $logdir || die $!) unless -d $logdir;
263263
print "\nRunning initdb on old cluster\n\n";
@@ -272,10 +272,7 @@ sub upgradecheck
272272
system("pg_dumpall -f $tmp_root/dump1.sql") == 0 or exit 1;
273273
print "\nStopping old cluster\n\n";
274274
system("pg_ctl -m fast stop") == 0 or exit 1;
275-
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);
275+
$ENV{PGDATA} = "$data";
279276
print "\nSetting up new cluster\n\n";
280277
system("initdb") == 0 or exit 1;
281278
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