mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
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:
@@ -64,8 +64,8 @@ mkdir "$logdir"
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
$oldbindir/initdb
|
$oldbindir/initdb -N
|
||||||
$oldbindir/pg_ctl start -l "$logdir/postmaster1.log" -w
|
$oldbindir/pg_ctl start -l "$logdir/postmaster1.log" -o '-F' -w
|
||||||
if "$MAKE" -C "$oldsrc" installcheck; then
|
if "$MAKE" -C "$oldsrc" installcheck; then
|
||||||
pg_dumpall -f "$temp_root"/dump1.sql || pg_dumpall1_status=$?
|
pg_dumpall -f "$temp_root"/dump1.sql || pg_dumpall1_status=$?
|
||||||
if [ "$newsrc" != "$oldsrc" ]; then
|
if [ "$newsrc" != "$oldsrc" ]; then
|
||||||
@@ -104,11 +104,11 @@ fi
|
|||||||
|
|
||||||
mv "${PGDATA}" "${PGDATA}.old"
|
mv "${PGDATA}" "${PGDATA}.old"
|
||||||
|
|
||||||
initdb
|
initdb -N
|
||||||
|
|
||||||
pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
|
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
|
if [ $testhost = Msys ] ; then
|
||||||
cmd /c analyze_new_cluster.bat
|
cmd /c analyze_new_cluster.bat
|
||||||
|
Reference in New Issue
Block a user