]> granicus.if.org Git - postgresql/commitdiff
pg_upgrade test: Disable fsync in initdb and postgres calls
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 27 Sep 2012 02:38:15 +0000 (22:38 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 27 Sep 2012 02:41:57 +0000 (22:41 -0400)
This mirrors the behavior of pg_regress and makes the test run much
faster.

contrib/pg_upgrade/test.sh

index 2d2cf64dcf939c26fc3254162fa880fab0409cac..32fb6bf56f31699cca40e524dd7cccf14c0adc2d 100644 (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