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

Commit8d21512

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 parent6cdefc8 commit8d21512

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎src/bin/pg_upgrade/test.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ unset MAKELEVEL
2222
standard_initdb() {
2323
# To increase coverage of non-standard segment size and group access
2424
# without increasing test runtime, run these tests with a custom setting.
25-
"$1" -N --wal-segsize 1 -g
25+
# Also, specify "-A trust" explicitly to suppress initdb's warning.
26+
"$1" -N --wal-segsize 1 -g -A trust
2627
if [-n"$TEMP_CONFIG"-a-r"$TEMP_CONFIG" ]
2728
then
2829
cat"$TEMP_CONFIG">>"$PGDATA/postgresql.conf"
@@ -162,9 +163,6 @@ done
162163
EXTRA_REGRESS_OPTS="$EXTRA_REGRESS_OPTS --port=$PGPORT"
163164
export EXTRA_REGRESS_OPTS
164165

165-
# enable echo so the user can see what is being executed
166-
set -x
167-
168166
standard_initdb"$oldbindir"/initdb
169167
"$oldbindir"/pg_ctl start -l"$logdir/postmaster1.log" -o"$POSTMASTER_OPTS" -w
170168

@@ -268,10 +266,6 @@ esac
268266
pg_dumpall --no-sync -f"$temp_root"/dump2.sql|| pg_dumpall2_status=$?
269267
pg_ctl -m fast stop
270268

271-
# no need to echo commands anymore
272-
set +x
273-
echo
274-
275269
if [-n"$pg_dumpall2_status" ];then
276270
echo"pg_dumpall of post-upgrade database cluster failed"
277271
exit 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp