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

fix(docker-jans-persistence-loader): exclude external tables when creating indexes #10512

Closed
iromli opened this issue Dec 25, 2024 · 0 comments · Fixed by #10522
Closed

fix(docker-jans-persistence-loader): exclude external tables when creating indexes #10512

iromli opened this issue Dec 25, 2024 · 0 comments · Fixed by #10522
Assignees
Labels
comp-docker-jans-persistence-loader kind-bug Issue or PR is a bug in existing functionality

Comments

@iromli
Copy link
Contributor

iromli commented Dec 25, 2024

Current SQL setup scans existing tables to check columns that need to be indexed. This may raise issue when scanning tables that externally created outside of persistence job.

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.InsufficientPrivilege) must be owner of table drill_iam_20240725

[SQL: CREATE INDEX "drill_iam_20240725_json_1" ON "drill_iam_20240725" USING GIN (JSONB_PATH_QUERY_ARRAY("jansExtUid", '$[*]'))]

SQL setup should exclude external tables.

Ref: support ticket 12023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-docker-jans-persistence-loader kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
2 participants