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?
pg-dumppostgresql
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?
Best Answer
The name
pg_dumpall
itself says “dump all”, which means you can't exclude anything. There is no suchpg_cumpall
option available.Use
pg_dump
instead.