pg_sample icon indicating copy to clipboard operation
pg_sample copied to clipboard

Feature Request: Wildcards in relations in limit

Open Zyntogz opened this issue 3 years ago • 1 comments

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.

Zyntogz avatar May 26 '21 08:05 Zyntogz

Try --limit="meta.test_\d+=0"

mla avatar Oct 04 '21 05:10 mla