feat: AWS RDS Specific logic required for PG_repack#308
Open
tkcontiant wants to merge 4 commits intomovetokube:masterfrom
Open
feat: AWS RDS Specific logic required for PG_repack#308tkcontiant wants to merge 4 commits intomovetokube:masterfrom
tkcontiant wants to merge 4 commits intomovetokube:masterfrom
Conversation
bf7f06a to
d32fe47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
According to the AWS RDS documentation: AmazonRDS-DOCS
While the pg_repack extension installation is already handled natively by the operator, AWS RDS requires an additional step to grant the necessary permissions for the objects created during the repack process.
pg_repack creates temporary tables and sequences in the repack schema, and the executing user must have appropriate privileges on those objects. Without configuring the default privileges, the repack operation may fail due to insufficient permissions.
In this implementation, we assume that pg_repack will be executed by the database owner user, which is already responsible for managing the database objects.
Therefore, we configure the following default privileges in the repack schema:
This ensures that objects created by pg_repack during the operation can be accessed and modified as required by the executing role.