Skip to content

Fix 'pq: permission denied for function pg_ls_waldir' on PG v16.6 - #1101

Open
kakuiho wants to merge 2 commits into
prometheus-community:masterfrom
kakuiho:fix-pg_ls_waldir-perm-pg16.6
Open

Fix 'pq: permission denied for function pg_ls_waldir' on PG v16.6#1101
kakuiho wants to merge 2 commits into
prometheus-community:masterfrom
kakuiho:fix-pg_ls_waldir-perm-pg16.6

Conversation

@kakuiho

@kakuiho kakuiho commented Dec 9, 2024

Copy link
Copy Markdown

see also #1100

@kakuiho

kakuiho commented Feb 5, 2025

Copy link
Copy Markdown
Author

@khiemdoan Could you please merge this PR?

@khiemdoan

Copy link
Copy Markdown
Contributor

Hi @kakuiho,
So sorry, I don't have permission to merge any PR.

Comment thread README.md
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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always hesitate to recommend someone give ALL permissions. I think this only needs EXECUTE. Can you confirm and update?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 👍

@ArthurSens

Copy link
Copy Markdown
Contributor

Hey @kakuiho, do you still plan to continue this PR? We need a rebase and the review comment needs to be addressed :)

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