postgres.git / summary / log / commit / refs

commit    119b9d060e8fde2ede980e1e6d643b893f550399
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Sun Dec 12 21:14:22 2021 +0000

    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 emit
    on stderr.
    
    This back-patches commit eb9812f27 into out-of-support branches,
    pursuant to newly-established project policy.  The point is to
    suppress useless noise on stderr when running check-world.
    
    Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com


contrib/pg_upgrade/test.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh index ac077cf6b23..7d1b3999067 100644 --- a/contrib/pg_upgrade/test.sh +++ b/contrib/pg_upgrade/test.sh @@ -20,7 +20,8 @@ unset MAKELEVEL # Run a given "initdb" binary and overlay the regression testing # authentication configuration. standard_initdb() { - "$1" -N + # Specify "-A trust" explicitly to suppress initdb's warning. + "$1" -N -A trust if [ -n "$TEMP_CONFIG" -a -r "$TEMP_CONFIG" ] then cat "$TEMP_CONFIG" >> "$PGDATA/postgresql.conf" @@ -148,9 +149,6 @@ done EXTRA_REGRESS_OPTS="$EXTRA_REGRESS_OPTS --port=$PGPORT" export EXTRA_REGRESS_OPTS -# enable echo so the user can see what is being executed -set -x - standard_initdb "$oldbindir"/initdb $oldbindir/pg_ctl start -l "$logdir/postmaster1.log" -o "$POSTMASTER_OPTS" -w @@ -222,10 +220,6 @@ esac pg_dumpall -f "$temp_root"/dump2.sql || pg_dumpall2_status=$? pg_ctl -m fast stop -# no need to echo commands anymore -set +x -echo - if [ -n "$pg_dumpall2_status" ]; then echo "pg_dumpall of post-upgrade database cluster failed" exit 1 [parent: 404d987646e3]