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

Correctly dump permissions for a Babelfish logical database #244

Conversation

rishabhtanwar29
Copy link
Contributor

@rishabhtanwar29 rishabhtanwar29 commented Oct 31, 2023

Description

Previously, we were not dumping sysadmin membership for a database
user during database level dump due to which users other than sysadmin
were unable to drop the restored database.

This commit fixes the issue by correctly dumping role memberships for all
the database roles. Additionally, refactored the code a little bit in dump_babel_utils.c

Task: BABEL-4516
Signed-off-by: Rishabh Tanwar [email protected]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@HarshLunagariya HarshLunagariya self-requested a review October 31, 2023 16:42
@shardgupta shardgupta merged commit 4f6179b into babelfish-for-postgresql:BABEL_3_X_DEV__PG_15_X Nov 2, 2023
2 checks passed
@shardgupta shardgupta deleted the jira-babel-4516 branch November 2, 2023 11:15
Sairakan pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 16, 2023
…h-for-postgresql#244)

Previously, we were not dumping sysadmin membership for a database
user during database level dump due to which users other than sysadmin
were unable to drop the restored database.

This commit fixes the issue by correctly dumping role memberships for all
the database roles. Additionally, refactored the code a little bit in dump_babel_utils.c

Task: BABEL-4516
Signed-off-by: Rishabh Tanwar [email protected]
priyansx pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 22, 2023
…h-for-postgresql#244)

Previously, we were not dumping sysadmin membership for a database
user during database level dump due to which users other than sysadmin
were unable to drop the restored database.

This commit fixes the issue by correctly dumping role memberships for all
the database roles. Additionally, refactored the code a little bit in dump_babel_utils.c

Task: BABEL-4516
Signed-off-by: Rishabh Tanwar [email protected]
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.

5 participants