pg_dump_sample icon indicating copy to clipboard operation
pg_dump_sample copied to clipboard

Feature Request: Allow to specify database with `-d` option

Open robturtle opened this issue 6 years ago • 2 comments

The username does not necessarily match the database name.

robturtle avatar Sep 19 '19 02:09 robturtle

You can specify the database name as a positional argument, check the usage:

pg_dump_sample [options] database

dankeder avatar Sep 19 '19 08:09 dankeder

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.

robturtle avatar Sep 19 '19 21:09 robturtle