Skip site navigation (1) Skip section navigation (2)

Re: Clearing global statistics

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Clearing global statistics
Date: 2010-01-14 17:44:37
Message-ID: (view raw, whole thread or download thread mbox)
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

In response to

pgsql-hackers by date

Next:From: Chris BrowneDate: 2010-01-14 17:46:12
Subject: Re: Add .gitignore files to CVS?
Previous:From: Greg SmithDate: 2010-01-14 17:42:41
Subject: Re: Clearing global statistics

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group