Project

General

Profile

« Previous | Next » 

Revision 6022

pg_dump_vegbien: Only include just the schema if new $schema flag is set. This causes constant lookup tables to automatically be exported for DB schemas, which was not fully supported by the $data flag because it also forced $owners to be enabled.

View differences:

pg_dump_vegbien
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -eq 1; then
7
    echo "Usage: env [data=1] [plain=1] [owners=1] [opts=...] $0 \
7
    echo "Usage: env [schema=1] [data=1] [plain=1] [owners=1] [opts=...] $0 \
8 8
{<schema>|all} [opts...] >out"|fold -s >&2
9 9
    exit 2
10 10
fi
......
18 18
    else set -- "$@" --format=c --compress=9
19 19
    fi
20 20
    owners=1
21
else set -- "$@" --schema-only
21
elif test -n "$schema"; then set -- "$@" --schema-only
22 22
fi
23 23
test -n "$owners" || set -- "$@" --no-owner --no-privileges
24 24
set -- "$@" $opts

Also available in: Unified diff