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 · 4 comments
Open

EXCLUDE does not exclude SEQUENCE and TYPE objects #1839

taneraruk opened this issue Nov 5, 2024 · 4 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]

@darold
Copy link
Owner

darold commented Nov 18, 2024

This work just perfectly with me:

EXCLUDE         TYPE[LANGUAGE_T LANGUAGES_T];SEQUENCE[ADDRESS.* FILM.*]

On your setting there is an extra space after TYPE this can be the cause of the problem.

@taneraruk
Copy link
Author

taneraruk commented Nov 19, 2024

this is what exactly my configuration, without ALLOW, and space. Only table is being filtered but sequence and type not.

EXCLUDE TABLE[GDW_.*];SEQUENCE[MDRS_.*];TYPE[ENTITY_VALUE_LIST_TYPE ATTRIBUTE_LIST_TYPE]

This worked for table and type but not sequence

EXCLUDE TABLE[GDW_.*]
EXCLUDE SEQUENCE[MDRS_.*]
EXCLUDE TYPE[ENTITY_VALUE_LIST_TYPE ATTRIBUTE_LIST_TYPE]

During the test count, it does not count the sequence values as well. The problem is with sequences.

The sequence names starts with MDRS_, contains $ sign (MDRS_9A9FC$, MDRS_9AFD$), that might cause the problem?
*Btw tested with EXPORT_INVALID parameters with enabled and disabled status.

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