Revision 11870
Added by Aaron Marcuse-Kubitza almost 11 years ago
pg_dump_limit | ||
---|---|---|
2 | 2 |
# Filters a PostgreSQL DB dump to remove security and schema-setting commands |
3 | 3 |
# Usage: self {input...|<input} >translated |
4 | 4 |
|
5 |
grep -v -E '^(CREATE DATABASE|SET search_path|GRANT|REVOKE)' "$@" |
|
5 |
grep -v -E '^(CREATE DATABASE|SET search_path|GRANT|REVOKE)' "$@" || true |
Also available in: Unified diff
bugfix: bin/pg_dump_limit: support errexit by ignoring the nonzero exit status that grep returns when it doesn't match anything