Revision 3401
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/pg_dump_vegbien | ||
---|---|---|
15 | 15 |
fi |
16 | 16 |
|
17 | 17 |
if test -n "$data"; then |
18 |
if test -n "$plain"; then dataOpts=--format=p
|
|
19 |
else dataOpts='--format=c --compress=9'
|
|
18 |
if test -n "$plain"; then set -- "$@" --format=p
|
|
19 |
else set -- "$@" --format=c --compress=9
|
|
20 | 20 |
fi |
21 | 21 |
owners=1 |
22 |
else dataOpts=--schema-only
|
|
22 |
else set -- "$@" --schema-only
|
|
23 | 23 |
fi |
24 |
test -n "$owners" && ownerOpts= || ownerOpts='--no-owner --no-privileges' |
|
24 |
test -n "$owners" || set -- "$@" --no-owner --no-privileges |
|
25 |
set -- "$@" --use-set-session-authorization |
|
25 | 26 |
|
26 |
(set -x; "$selfDir/../bin/postgres_vegbien" pg_dump "$@" \ |
|
27 |
$dataOpts $ownerOpts --use-set-session-authorization) |
|
27 |
set -x |
|
28 |
exec "$selfDir/postgres_vegbien" pg_dump "$@" |
Also available in: Unified diff
pg_dump_vegbien: For consistency with setting the --schema option, use `set -- "$
" args...` to append options to $
which are then passed to pg_dump, instead of specifying several variables which are then included in the pg_dump command