Re: Unable to reset stats using pg_stat_reset_replication_slot

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: satyanarayana(dot)thirumani(at)gmail(dot)com
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Unable to reset stats using pg_stat_reset_replication_slot
Date: 2022-11-21 02:33:37
Message-ID: 20221121.113337.704527151891489135.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This doesn't seem like fitting here, but..

At Fri, 18 Nov 2022 18:38:56 +0530, Satya Thirumani <satyanarayana(dot)thirumani(at)gmail(dot)com> wrote in
> I'm unable to reset stats. Please help me to fix this?
>
> testdb => select * from pg_stat_reset_replication_slot(NULL);
> ERROR: permission denied for function pg_stat_reset_replication_slot

Yeah, the user doesn't seem to be allowed to do that. Only superusers
can do that defaultly.

https://www.postgresql.org/docs/devel/monitoring-stats.html
> This function is restricted to superusers by default, but other
> users can be granted EXECUTE to run the function.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2022-11-21 03:00:11 Re: CREATE INDEX CONCURRENTLY on partitioned index
Previous Message Kyotaro Horiguchi 2022-11-21 02:20:00 Re: when the startup process doesn't (logging startup delays)