Skip to content

Commit 10bfe81

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 much faster.
1 parent bac95fd commit 10bfe81

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy