-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
postgresql_ext: cascade extension creating/deleting #50717
Conversation
shipit |
bot_status |
1 similar comment
bot_status |
Componentslib/ansible/modules/database/postgresql/postgresql_ext.py Metadatawaiting_on: maintainer |
Also add information to 'notes' section that 'cascade' parameter is supported from version 9.6 of PgSQL. I've tried it, it works correctly (absent, present). |
Addressed @Andersson007's feedback. |
@kostiantyn-nemchenko this PR contains the following merge commits: Please rebase your branch to remove these commits. |
* postgresql_ext: cascade extension creating/deleting
ready_for_review |
I tested it again, just in case. Can be really useful, thank you! |
shipit |
bot_status |
Componentslib/ansible/modules/database/postgresql/postgresql_ext.py Metadatawaiting_on: maintainer |
Nice to see this work ;-) |
SUMMARY
Currently, without CASCADE clause, if an extension has an unfulfilled dependency on another extension,
CREATE EXTENSION errors out with "required extension ... is not installed" or, if an extension is a dependency for another extension, DROP EXTENSION fails with "cannot drop extension ... because other objects depend on it".
This PR adds support for creating/deleting extensions with their dependencies.
ISSUE TYPE
COMPONENT NAME
postgresql_ext
ADDITIONAL INFORMATION
Task example: