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

Some databases can't DROP EXTENSION IF EXISTS pglogical -- hangs indefinitely. #84

Open
vjeeva opened this issue Sep 14, 2022 · 1 comment
Assignees

Comments

@vjeeva
Copy link
Contributor

vjeeva commented Sep 14, 2022

Relates to 2ndQuadrant/pglogical#211

We had an internal database hang when running DROP EXTENSION IF EXISTS pglogical, after running the fix for #83. We were doing this to unblock a migration on an internal database -- alembic was connecting to the database using the role that owned all the tables in the schema. Still, alembic was having permission issues with the pglogical schema.

This database doesn't need belt or pglogical right now. We tried dropping the schema, but it said to drop the extension. We try dropping the extension, but it hangs.

To unblock their migration with their role, I had to run a GRANT USAGE ON SCHEMA pglogical TO <that_role>. That may have thrown an extra wrench in dropping the extension, but we should try and figure this bug out.

Might also be related to 2ndQuadrant/pglogical#361

@vjeeva vjeeva self-assigned this Sep 14, 2022
@vjeeva
Copy link
Contributor Author

vjeeva commented Oct 11, 2023

#278 will fix the USAGE issue. Extension dropping still is being investigated, see 2ndQuadrant/pglogical#422.

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

1 participant