Proposal: Allow user with pg_monitor role to call pg_stat_reset* functions

From: sirisha chamarthi <sirichamarthi22(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Proposal: Allow user with pg_monitor role to call pg_stat_reset* functions
Date: 2022-11-21 08:16:20
Message-ID: CAKrAKeXRmqi65dA0HoiLfteFBE8pjqQKPkt50cyY0ihJ8Vg7nw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers,

At present, calling pg_stat_reset* functions requires super user access
unless explicitly grant execute permission on those. In this thread, I am
proposing to grant execute on them to users with pg_monitor role
permissions. This comes handy to the monitoring users (part of pg_monitor
role) to capture the stats fresh and analyze. Do you see any concerns with
this approach?

Thanks,
Sirisha

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Laurenz Albe 2022-11-21 08:31:44 Re: Reducing power consumption on idle servers
Previous Message Masahiko Sawada 2022-11-21 08:06:56 Re: [PoC] Improve dead tuple storage for lazy vacuum