gonymizer
gonymizer copied to clipboard
Wrap pg_dump's ability to dump only a few tables
Hi,
Conversely to the ability to exclude tables from the dump, which gonymizer already wraps, pg_dump
also has the ability to specify exactly which tables should be exported:
-t, --table=TABLE dump the named table(s) only
This would be nice at the prototyping phase with gonymizer: just focus on a few tables, don't wait too much on the network.
Cheers
Workaround for users in the meantime:
- use
--log-level=DEBUG
for a first run withgonymizer dump
; - keep a record of the
pg_dump
command line with all the options, and feel free to stop the container; - update your script to use this
pg_dump
command instead of the usualgonymizer dump
, and add the--table
options as needed.
Ended up using a different solution.