Re: pg_stat_reset not resetting all stats

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_stat_reset not resetting all stats
Date: 2008-12-12 21:48:07
Message-ID: 10878.1229118487@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info> writes:
> Is there a reason that pg_stat_reset doesn't reset the stats in
> pg_stat_bgwriter and pg_stat_database? PG 8.3 (obviously).

It is only supposed to reset counters associated with the current
database. Those counts are cluster-wide.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2008-12-13 01:11:22 Re: Possible bug with ALTER LANGUAGE ... OWNER TO ...
Previous Message Scott Marlowe 2008-12-12 20:53:34 Re: Database config managment