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

Commit19f9a5a

Browse files
committed
Make pg_upgrade's test.sh less chatty.
Remove "set -x", and pass "-A trust" to initdb explicitly,to suppress almost all of the noise this script used to emiton stderr.Back-patch of commiteb9812f into all active branches.Discussion:https://postgr.es/m/21766.1558397960@sss.pgh.pa.usDiscussion:https://postgr.es/m/20190722193459.GA14241@alvherre.pgsql
1 parent847561c commit19f9a5a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎contrib/pg_upgrade/test.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ unset MAKELEVEL
2020
# Run a given "initdb" binary and overlay the regression testing
2121
# authentication configuration.
2222
standard_initdb() {
23-
"$1" -N
23+
# Specify "-A trust" explicitly to suppress initdb's warning.
24+
"$1" -N -A trust
2425
if [-n"$TEMP_CONFIG"-a-r"$TEMP_CONFIG" ]
2526
then
2627
cat"$TEMP_CONFIG">>"$PGDATA/postgresql.conf"
@@ -148,9 +149,6 @@ done
148149
EXTRA_REGRESS_OPTS="$EXTRA_REGRESS_OPTS --port=$PGPORT"
149150
export EXTRA_REGRESS_OPTS
150151

151-
# enable echo so the user can see what is being executed
152-
set -x
153-
154152
standard_initdb"$oldbindir"/initdb
155153
$oldbindir/pg_ctl start -l"$logdir/postmaster1.log" -o"$POSTMASTER_OPTS" -w
156154

@@ -222,10 +220,6 @@ esac
222220
pg_dumpall -f"$temp_root"/dump2.sql|| pg_dumpall2_status=$?
223221
pg_ctl -m fast stop
224222

225-
# no need to echo commands anymore
226-
set +x
227-
echo
228-
229223
if [-n"$pg_dumpall2_status" ];then
230224
echo"pg_dumpall of post-upgrade database cluster failed"
231225
exit 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp