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

Commit10bfe81

Browse files
committed
pg_upgrade test: Disable fsync in initdb and postgres calls
This mirrors the behavior of pg_regress and makes the test run muchfaster.
1 parentbac95fd commit10bfe81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎contrib/pg_upgrade/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ mkdir "$logdir"
6464

6565
set -x
6666

67-
$oldbindir/initdb
68-
$oldbindir/pg_ctl start -l"$logdir/postmaster1.log" -w
67+
$oldbindir/initdb -N
68+
$oldbindir/pg_ctl start -l"$logdir/postmaster1.log" -o'-F' -w
6969
if"$MAKE" -C"$oldsrc" installcheck;then
7070
pg_dumpall -f"$temp_root"/dump1.sql|| pg_dumpall1_status=$?
7171
if ["$newsrc"!="$oldsrc" ];then
@@ -104,11 +104,11 @@ fi
104104

105105
mv"${PGDATA}""${PGDATA}.old"
106106

107-
initdb
107+
initdb -N
108108

109109
pg_upgrade -d"${PGDATA}.old" -D"${PGDATA}" -b"$oldbindir" -B"$bindir"
110110

111-
pg_ctl start -l"$logdir/postmaster2.log" -w
111+
pg_ctl start -l"$logdir/postmaster2.log" -o'-F' -w
112112

113113
if [$testhost= Msys ];then
114114
cmd /c analyze_new_cluster.bat

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp