Revision 9136
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/local.sh | ||
---|---|---|
49 | 49 |
\set table_str '''"$table"''' |
50 | 50 |
SET search_path TO "$schema", util; |
51 | 51 |
EOF |
52 |
cat)| |
|
52 |
cat)|stderr_is_errors=1 \
|
|
53 | 53 |
env no_search_path=1 "$psql_cmd" --output /dev/fd/11 "$@" 11>&1 >&2 |
54 | 54 |
} |
55 | 55 |
|
Also available in: Unified diff
lib/sh/local.sh: psql(): use new stderr_is_errors=1 since psql's logging output comes on stdout, so stderr contains only errors. (the caveat of this is that the query output is normally mixed with logging info on stdout, and needs to be separated out to a different file descriptor using --output.)