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

Commitb7f8465

Browse files
committed
Avoid renaming data directory during MSVC upgrade testing.
This appears to cause some intermittent file system problemson Windows 8. Instead, set up the old data directory in itsintended final location to start with.
1 parentcdc6793 commitb7f8465

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") == 0orexit 1;
273273
print"\nStopping old cluster\n\n";
274274
system("pg_ctl -m fast stop") == 0orexit 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") == 0orexit 1;
281278
print"\nRunning pg_upgrade\n\n";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp