6

If use pg_dump, it has a --exclude-table-data option to ignore special table.

But pg_dumpall command doesn't has that option. So how to exclude several tables when dump all databases?

0

The name pg_dumpall itself says “dump all”, which means you can't exclude anything. There is no such pg_cumpall option available.

Use pg_dump instead.

0

pg_dumpall is a wrapper that calls pg_dump repeatedly.

perhaps you can shim pg_dump by using a script that inserts the needed options onto the command-line.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.