Skip to content

Commit b9035eb

Browse files
Fixed multixact_size metric
1 parent a8993c1 commit b9035eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

config/pgwatch-prometheus/metrics.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,13 +2212,11 @@ metrics:
22122212
join pg_namespace n on n.oid = p.pronamespace
22132213
where p.proname = 'pg_ls_multixactdir' and n.nspname = 'rds_tools'
22142214
) as has_rds_fn,
2215-
coalesce(pg_has_role('pg_read_server_files','usage'), false) as has_read_files,
2216-
(select rolsuper from pg_roles where rolname = current_user) as is_super,
22172215
exists (select from pg_proc where proname = 'pg_ls_dir') as has_pg_ls_dir_func,
22182216
exists (select from pg_proc where proname = 'pg_stat_file') as has_pg_stat_file_func
22192217
),
22202218
can_local as (
2221-
select (has_pg_ls_dir_func and has_pg_stat_file_func and (has_read_files or is_super)) as ok from env
2219+
select (has_pg_ls_dir_func and has_pg_stat_file_func) as ok from env
22222220
),
22232221
-- Use query_to_xml to safely execute RDS-specific multixact directory listing query.
22242222
-- The XML wrapper allows the query to fail gracefully if rds_tools.pg_ls_multixactdir()

0 commit comments

Comments
 (0)