pg_upgrade test: Disable fsync in initdb and postgres calls

This mirrors the behavior of pg_regress and makes the test run much
faster.
This commit is contained in:
Peter Eisentraut 2012-09-26 22:38:15 -04:00
parent bac95fd474
commit 10bfe81dee
1 changed files with 4 additions and 4 deletions

View File

@ -64,8 +64,8 @@ mkdir "$logdir"
set -x
$oldbindir/initdb
$oldbindir/pg_ctl start -l "$logdir/postmaster1.log" -w
$oldbindir/initdb -N
$oldbindir/pg_ctl start -l "$logdir/postmaster1.log" -o '-F' -w
if "$MAKE" -C "$oldsrc" installcheck; then
pg_dumpall -f "$temp_root"/dump1.sql || pg_dumpall1_status=$?
if [ "$newsrc" != "$oldsrc" ]; then
@ -104,11 +104,11 @@ fi
mv "${PGDATA}" "${PGDATA}.old"
initdb
initdb -N
pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
pg_ctl start -l "$logdir/postmaster2.log" -w
pg_ctl start -l "$logdir/postmaster2.log" -o '-F' -w
if [ $testhost = Msys ] ; then
cmd /c analyze_new_cluster.bat