Re: Clearing global statistics

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: Greg Smith <greg@2ndquadrant.com>
Cc: Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>, pgsql-hackers@postgresql.org
Date: 2009-12-09T17:55:05Z
Lists: pgsql-hackers
On sön, 2009-12-06 at 19:50 -0500, Greg Smith wrote:
> The fact that you're asking the question this way suggests to me I've 
> named this completely wrong.  pg_stat_reset_global only resets the
> bits 
> global to all databases.  It doesn't touch any of the
> database-specific 
> things that pg_stat_reset can handle right now.  At the moment, the
> only 
> global information is what's in pg_stat_bgwriter:  buffer statistics
> and 
> checkpoint stats.  I'm thinking that I should rename this new
> function 
> to pg_stat_reset_bgwriter so it's obvious how limited its target is.  
> Using either "global" or "cluster" for the name is just going to
> leave 
> people thinking it acts across a much larger area than it does.

The term "shared" is used elsewhere to describe the, well, shared
catalogs.