Fix 'pq: permission denied for function pg_ls_waldir' on PG v16.6 - #1101
Open
kakuiho wants to merge 2 commits into
Open
Fix 'pq: permission denied for function pg_ls_waldir' on PG v16.6#1101kakuiho wants to merge 2 commits into
kakuiho wants to merge 2 commits into
Conversation
… v16.6. Signed-off-by: kakuiho <61496907+kakuiho@users.noreply.github.com>
Author
|
@khiemdoan Could you please merge this PR? |
Contributor
|
Hi @kakuiho, |
sysadmind
requested changes
Feb 15, 2025
| SELECT * FROM get_pg_stat_statements(); | ||
|
|
||
| GRANT SELECT ON postgres_exporter.pg_stat_statements TO postgres_exporter; | ||
| GRANT ALL ON FUNCTION pg_catalog.pg_ls_waldir() TO postgres_exporter; |
Contributor
There was a problem hiding this comment.
I always hesitate to recommend someone give ALL permissions. I think this only needs EXECUTE. Can you confirm and update?
There was a problem hiding this comment.
I ran on this comment by chance and did it on my side as I had the error, and it did clear the error from the console when granting only EXECUTE. So I guess it does work 👍
Contributor
|
Hey @kakuiho, do you still plan to continue this PR? We need a rebase and the review comment needs to be addressed :) |
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.
see also #1100