File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
config/pgwatch-prometheus Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments