pgcopydb icon indicating copy to clipboard operation
pgcopydb copied to clipboard

Can I exclude group of tables by regex?

Open ivanovUA opened this issue 1 year ago • 1 comments

Hi, can I exclude group of tables in filters with some regex? Seems it's not working in both options:

[exclude-table]
public."sometable1_%"
public."sometable2_*"

As a test I used next:

pgcopydb list tables --source "$SOURCE" --filter /src/filter --list-skipped

ivanovUA avatar Feb 02 '24 16:02 ivanovUA

Not supported at the moment. I'm not sure we should implement that, though we could certainly make use of the Postgres operator for regexp comparing. Contributions accepted!

dimitri avatar Feb 02 '24 17:02 dimitri