pg_dump_sample
pg_dump_sample copied to clipboard
Feature Request: Allow to specify database with `-d` option
The username does not necessarily match the database name.
You can specify the database name as a positional argument, check the usage:
pg_dump_sample [options] database
Thanks for the response! However, I still failed to use this tool on my DB -- it looks like it ran into an infinite loop. The sample output stopped at a certain point forever. I already set LIMIT 1 on all my 160 tables and it should be very fast. My suspicion is if this tool can handle circular dependency.
Didn't get a chance to check the implementation though. Thanks for writing this tool anyway.