Project

General

Profile

« Previous | Next » 

Revision 9213

bugfix: lib/sh/local.sh: psql(): need to use limit_stdout=1 instead of stderr_is_errors=1 because logging info is output to stdout, not stderr, in spite of the >&2 redirection, since the >&2 is applied after command()'s logging redirects. note that the >&2 can now be removed, because it will be performed by command().

View differences:

local.sh
51 51
\set table_str '''"$table"'''
52 52
SET search_path TO "$schema", util;
53 53
EOF
54
	cat)|stderr_is_errors=1 \
55
	env no_search_path=1 "$psql_cmd" --output /dev/fd/11 "$@" 11>&1 >&2
54
	cat)|limit_stdout=1 \
55
	env no_search_path=1 "$psql_cmd" --output /dev/fd/11 "$@" 11>&1
56 56
}
57 57

  
58 58
public_schema_exists() { psql_script_vegbien </dev/null 2>/dev/null; }

Also available in: Unified diff