Revision 7233
Added by Aaron Marcuse-Kubitza almost 12 years ago
psql_script_vegbien | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 | 2 |
# Runs script on vegbien db |
3 |
# Usage: env [no_search_path=1] self [psql_opts...] |
|
3 |
# Usage: env [no_search_path=1] [no_query_results=1] self [psql_opts...]
|
|
4 | 4 |
|
5 | 5 |
selfDir="$(dirname -- "$0")" |
6 | 6 |
|
... | ... | |
8 | 8 |
|
9 | 9 |
searchPath="\"${schemas//,/\",\"}\"" |
10 | 10 |
|
11 |
(test -z "$no_search_path" && echo "SET search_path TO $searchPath;"; cat)\ |
|
12 |
|nice -n +5 "$selfDir/psql_vegbien" --set ON_ERROR_STOP=1 --quiet "$@" |
|
11 |
( |
|
12 |
test -z "$no_search_path" && echo "SET search_path TO $searchPath;" |
|
13 |
test -n "$no_query_results" && echo '\o /dev/null' |
|
14 |
cat |
|
15 |
)|nice -n +5 "$selfDir/psql_vegbien" --set ON_ERROR_STOP=1 --quiet "$@" |
Also available in: Unified diff
psql_script_vegbien: Added no_query_results option to hide results of calls to void functions