Re: Clearing global statistics

Greg Smith <greg@2ndquadrant.com>

From: Greg Smith <greg@2ndquadrant.com>
To: Euler Taveira de Oliveira <euler@timbira.com>
Cc: Magnus Hagander <magnus@hagander.net>, Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2010-01-14T17:44:37Z
Lists: pgsql-hackers
Euler Taveira de Oliveira wrote:
> Greg Smith escreveu:
>   
>> pg_stat_reset( which text )
>>       which := 'buffers' | 'checkpoints' | 'tables' | 'functions' |  ...
>>
>>     
> What about adding 'all' too? Or the idea is resetting all global counters when
> we call pg_stat_reset() (without parameters)?
>   

Once there's more than one piece to clear maybe adding in an 'all' 
target makes sense.  In the context of the update patch I've finished, 
it just doesn't make sense given the code involved.

-- 
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com