Fixed 'pq: permission denied for function pg_ls_waldir' on PostgreSQL v16.6.

Signed-off-by: kakuiho <61496907+kakuiho@users.noreply.github.com>
This commit is contained in:
kakuiho 2024-12-09 12:08:48 +08:00 committed by GitHub
parent a324fe37bc
commit 9258b5087c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -418,6 +418,7 @@ AS
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;
```
> **NOTE**