Revision 6245
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/psql_vegbien | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 | 2 |
# Accesses vegbien db |
3 |
# Usage env [no_search_path=1] self [psql_opts...]
|
|
3 |
# Usage: self [psql_opts...]
|
|
4 | 4 |
|
5 | 5 |
selfDir="$(dirname -- "$0")" |
6 | 6 |
|
7 |
. "$selfDir/vegbien_dest" |
|
8 |
|
|
9 |
searchPath="\"${out_schemas//,/\",\"}\"" |
|
10 |
|
|
11 |
(test -z "$no_search_path" && echo "SET search_path TO $searchPath;"; cat)\ |
|
12 |
|"$selfDir/postgres_vegbien" psql "$@" |
|
7 |
exec "$selfDir/postgres_vegbien" psql "$@" |
bin/psql_script_vegbien | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
# Runs script on vegbien db |
3 |
# Usage: env [no_search_path=1] self [psql_opts...] |
|
3 | 4 |
|
4 | 5 |
selfDir="$(dirname -- "$0")" |
5 | 6 |
|
6 |
exec "$selfDir/psql_vegbien" --set ON_ERROR_STOP=1 --quiet "$@" |
|
7 |
. "$selfDir/vegbien_dest" |
|
8 |
|
|
9 |
searchPath="\"${out_schemas//,/\",\"}\"" |
|
10 |
|
|
11 |
(test -z "$no_search_path" && echo "SET search_path TO $searchPath;"; cat)\ |
|
12 |
|"$selfDir/psql_vegbien" --set ON_ERROR_STOP=1 --quiet "$@" |
Also available in: Unified diff
psql_vegbien: Fixed bug where did not display command prompt when run from command line, by moving automatic setting of search_path to psql_script_vegbien. psql_script_vegbien is now used instead of psql_vegbien wherever the search_path needs to be set, so removing this functionality from psql_vegbien is not a problem.