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

Only select dependencies in the pg_class catalog #1310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikeN123
Copy link

This makes sure we do not select dependencies form the pg_operator class or other similar things.
Otherwise, if your FK has a dependency on something like a pg_operator (e.g., when your FK is pointing to a CITEXT column), things will break with the message:

ERROR pgsql: The value
         NIL
       is not of type
         PGLOADER.CATALOG:INDEX

during PGLOADER.PGSQL:LIST-ALL-FKEYS.

I'm not an expert on the exact contents on the pg_class and pg_depend tables, so can't guarantee this is the 100% correct fix.

Fixes #1289

This makes sure we do not select dependencies form the pg_operator class or other similar things.

Fixes dimitri#1289
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

Successfully merging this pull request may close these issues.

PGLOADER.CATALOG:INDEX error
1 participant