root/bin/psql_vegbien @ 6213
1 | 6063 | aaronmk | #!/bin/bash
|
---|---|---|---|
2 | 277 | aaronmk | # Accesses vegbien db
|
3 | 6097 | aaronmk | # Usage env [no_search_path=1] self [psql_opts...]
|
4 | 194 | aaronmk | |
5 | selfDir="$(dirname -- "$0")" |
||
6 | |||
7 | 6062 | aaronmk | . "$selfDir/vegbien_dest" |
8 | |||
9 | searchPath="\"${out_schemas//,/\",\"}\"" |
||
10 | |||
11 | 6097 | aaronmk | (test -z "$no_search_path" && echo "SET search_path TO $searchPath;"; cat)\ |
12 | 6062 | aaronmk | |"$selfDir/postgres_vegbien" psql "$@" |