Re: Add new option 'all' to pg_stat_reset_shared() - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: Add new option 'all' to pg_stat_reset_shared()
Date
Msg-id 20231031.115931.1009045759469844714.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: Add new option 'all' to pg_stat_reset_shared()  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Add new option 'all' to pg_stat_reset_shared()
List pgsql-hackers
At Mon, 30 Oct 2023 14:15:53 +0530, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote in 
> > > I imagine there are cases where people want to initialize all of them
> > > at the same time in addition to initializing one at a time.
> >
> > FWIW, I fairly often wanted it, but forgot about that:p
> 
> Isn't calling pg_stat_reset_shared() for all stats types helping you
> out? Is there any problem with it? Can you be more specific about the
> use-case?

Oh. Sorry, it's my bad. pg_stat_reset_shared() is sufficient.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Zhang Mingli
Date:
Subject: Re: COPY TO (FREEZE)?
Next
From: Amit Kapila
Date:
Subject: Re: Is this a problem in GenericXLogFinish()?