Revision 2622
Added by Aaron Marcuse-Kubitza over 12 years ago
pg_dump_vegbien | ||
---|---|---|
4 | 4 |
selfDir="$(dirname -- "$0")" |
5 | 5 |
|
6 | 6 |
if ! test "$#" -eq 1; then |
7 |
echo "Usage: $0 schema >schema.sql" |
|
7 |
echo "Usage: env [owners=1] $0 schema >schema.sql"
|
|
8 | 8 |
exit 2 |
9 | 9 |
fi |
10 |
test -n "$owners" && noOwners= || noOwners=1 |
|
10 | 11 |
|
11 | 12 |
"$selfDir/../bin/postgres_vegbien" pg_dump --schema="$1" --schema-only \ |
12 |
--no-owner --no-privileges |
|
13 |
${noOwners:+--no-owner --no-privileges} |
Also available in: Unified diff
pg_dump_vegbien: Support optionally including owners