Commit c403fc2
committed
fix: check execute privilege before calling pg_stat_file in multixact_size
The multixact_size metric checks if pg_stat_file() exists but not
whether the monitoring user has EXECUTE permission on it. On managed
databases like Supabase, the function exists but is restricted to
superusers, causing "permission denied for function pg_stat_file".
Add has_function_privilege() check to the can_local CTE so the
local_probe_xml branch is skipped when the user lacks permission.
https://claude.ai/code/session_01SzJxzZNQjDQphaHyaX3RU71 parent 15ccc69 commit c403fc2
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2397 | 2397 | | |
2398 | 2398 | | |
2399 | 2399 | | |
2400 | | - | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
2401 | 2403 | | |
2402 | 2404 | | |
2403 | 2405 | | |
| |||
0 commit comments