Re: Clearing global statistics

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Clearing global statistics
Date: 2009-12-07 01:12:20
Message-ID: 4B1C5674.5060901@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Itagaki Takahiro wrote:
> Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
>
>
>> I'm thinking that I should rename this new function
>> to pg_stat_reset_bgwriter so it's obvious how limited its target is.
>>
>
> I don't think it is a good name because we might have another cluster-level
> statictics not related with bgwriter in the future. I hope you will suggest
> "extensible" method when you improve this area.
>
I follow what you mean now. I'll take a look at allowing pg_stat_reset
to act on an input as you suggested, rather than adding more of these
UDFs for every time somebody adds a new area they want to target clearing.

--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2009-12-07 01:12:43 Re: tsearch parser inefficiency if text includes urls or emails - new version
Previous Message Hitoshi Harada 2009-12-07 01:04:53 Re: add more frame types in window functions (ROWS)