Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCLUDE does not exclude SEQUENCE and TYPE objects #1839

Open
taneraruk opened this issue Nov 5, 2024 · 2 comments
Open

EXCLUDE does not exclude SEQUENCE and TYPE objects #1839

taneraruk opened this issue Nov 5, 2024 · 2 comments

Comments

@taneraruk
Copy link

Hi,

I am running a test count with this command,

ora2pg -t TEST --count_rows -c ora2pg_test.conf

In config file I exclude a couple of sequences and types like this,

ALLOW	ABC_.*,  DEF_.*
EXCLUDE SEQUENCE GHI_.*
EXCLUDE TYPE JKL, MNL

ALLOW works properly for tables but EXCLUDE does not filter SEQUENCE and TYPE objects.

Environment,

ora2pg Version: 24.1
PostgreSQL Version: 15
Oracle Client Version: 12.2
OS: Openshift Linux
@darold
Copy link
Owner

darold commented Nov 6, 2024

If ALLOW is set, EXCLUDE is not taken in account.

About sequences and types, how about:

EXCLUDE SEQUENCE[GHI_.*];TYPE [JKL MNL]

@taneraruk
Copy link
Author

I have removed ALLOW and kept only EXCLUDE but none of the combination below worked, seems EXCLUDE only filters tables, neither sequences nor types.

EXCLUDE SEQUENCE[GHI_.*];TYPE [JKL MNL]
EXCLUDE SEQUENCE[GHI_.*],TYPE [JKL MNL]
EXCLUDE SEQUENCE[GHI_.*] TYPE [JKL MNL]
EXCLUDE SEQUENCE[GHI_.*]
EXCLUDE TYPE [JKL MNL]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants