> After calling pg_stat_reset, some of the database stats fields are not
> actually reset, the value is preserved. I've found the bug is actually in
> pgstat_recv_resetcounter function, where only some of the
> PgStat_StatDBEntry fields are reset to 0.
> This is true for those 6 fields:
Hmm. I think that not resetting the n_tuples_xxx fields was simply an
oversight in Magnus' patch that added them,
Magnus, was this intentional by any chance?
However, I disagree with resetting last_autovac_time ... that's not a
counter, so there's no particularly good reason to discard its value.
regards, tom lane
In response to
pgsql-bugs by date
|Next:||From: tv||Date: 2010-12-11 17:58:50|
|Subject: Re: not all pg_stat_database fields reset after
|Previous:||From: tv||Date: 2010-12-11 16:19:11|
|Subject: not all pg_stat_database fields reset after pg_stat_reset()|