Re: Support reset of Shared objects statistics in "pg_stat_reset" function

From: Sadhuprasad Patro <b(dot)sadhu(at)gmail(dot)com>
To: Mahendra Singh Thalor <mahi6run(at)gmail(dot)com>
Cc: Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Himanshu Upadhyaya <upadhyaya(dot)himanshu(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Support reset of Shared objects statistics in "pg_stat_reset" function
Date: 2021-08-20 01:02:14
Message-ID: CAFF0-CHNLYBM3XsFkPvW5EAvs+9e6HaO_VOUgsn1Z7GQQfWWkA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> If we do support resetting the stats for shared tables in
> 'pg_stat_reset', which is for DB level,
> then the stats of shared tables will be reseted in other instances as
> well, which seems to be not correct.
> So we need to provide some way to reset the stats for shared tables to
> customers.
>
> In the latest patch, we have supported only through the
> pgstat_recv_resetsinglecounter function to reset stats for shared
> tables.

Final patch attached after some corrections..

Thanks & Regards
SadhuPrasad
EnterpriseDB: http://www.enterprisedb.com

Attachment Content-Type Size
v4-0001-Enhancing-pg_stat_reset_single_table_counters-to-.patch application/octet-stream 2.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mahendra Singh Thalor 2021-08-20 02:07:52 Re: Support reset of Shared objects statistics in "pg_stat_reset" function
Previous Message Jacob Champion 2021-08-20 00:05:19 Re: badly calculated width of emoji in psql