Grant extension-owner access to tables, functions in schema repack.#451
Open
harinath001 wants to merge 1 commit intoreorg:masterfrom
Open
Grant extension-owner access to tables, functions in schema repack.#451harinath001 wants to merge 1 commit intoreorg:masterfrom
harinath001 wants to merge 1 commit intoreorg:masterfrom
Conversation
6c24873 to
19e14d1
Compare
and grant access to tables, functions in schema repack. This will ensure that the extension can be installed as trusted extension, and non-superusers can create and use the extension, without superuser/DBA help.
19e14d1 to
cbfac44
Compare
|
can two different non-superusers both install separate copies of this extension at the same time, if they both need to repack a table? |
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.
Context
If PostgreSQL admin allows
pg_repackto be trusted extension (by not granting superuser access to the users), then users should be ale to install and run pg_repack on their databases without the intervention of superusers/DBAs.But today, when we make
pg_repackas a trusted extension, superuser has to grant these privileges to the extension owners.otherwise we get this error
this is because when the extension is trusted, the schema is owned by install superuser
Note: