pg_sample
pg_sample copied to clipboard
Feature Request: Wildcards in relations in limit
Hello again :)
i wondered if it would make sense to extend the functionality of the limit parameter in a way, that wildcards are permitted in relation names.
Example: limit="meta.=0" dumps no data from tables in the meta schema. But what if i want to just exclude specific relations (for example partitions) that all have common name parts except a suffix (for example meta.test_1, meta.test_2, ...). limit="meta.test_=0" does not work currently and i would have to specify every partitions separately.
Just a proposal, don't know if this would make sense. Furthermore, if it would be too hard to implement it could not be worth the effort.
Try --limit="meta.test_\d+=0"