Project

General

Profile

« Previous | Next » 

Revision 12738

fix: lib/sh/db.sh: psql(): verbosity=0 (errors only) mode: use `SET client_min_messages = WARNING;` instead of NOTICE to hide verbose messages within psql as well

View differences:

trunk/lib/sh/db.sh
283 283
	(
284 284
		# hide stack traces/DETAIL sections of error messages at verbosity <2
285 285
		if ! clog++ can_log; then echo '\set VERBOSITY terse'; fi
286
		if test "$verbose_"; then cat <<'EOF'
287
\timing on
288
SET client_min_messages = NOTICE;
289
EOF
290
		fi
286
		if test "$verbose_"; then echo '\timing on'; fi
287
		echo "SET client_min_messages = \
288
$(if test "$verbose_"; then echo NOTICE; else echo WARNING; fi);"
291 289
		cat
292 290
	)|cmd_log_fd=${verbose_ok:+1} pg_cmd --file /dev/fd/40 \
293 291
${verbose_ok:+--output /dev/fd/41 }--set ON_ERROR_STOP=1 --quiet "$@" \

Also available in: Unified diff