Revision 8196
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/import.sh | ||
---|---|---|
21 | 21 |
|
22 | 22 |
psql () |
23 | 23 |
{ |
24 |
(echo "SET search_path TO \"$schema\", util;"; cat)| |
|
24 |
(cat <<EOF |
|
25 |
\set schema "$schema" |
|
26 |
\set table "$table" |
|
27 |
\set table_str '''"$table"''' |
|
28 |
SET search_path TO "$schema", util; |
|
29 |
EOF |
|
30 |
cat)| |
|
25 | 31 |
env no_search_path=1 "$bin_dir"/psql_verbose_vegbien |
26 | 32 |
} |
27 | 33 |
|
Also available in: Unified diff
lib/import.sh: psql(): Set psql vars :schema, :table, :table_str for use by the psql commands