Re: Vacuuming anything zeroes shared table stats - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Vacuuming anything zeroes shared table stats
Date
Msg-id 19365.1181241359@sss.pgh.pa.us
Whole thread Raw
In response to Re: Vacuuming anything zeroes shared table stats  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Vacuuming anything zeroes shared table stats
List pgsql-hackers
Michael Fuhr <mike@fuhr.org> writes:
> Further investigation shows that what really seems to be happening
> in 8.3devel is that the statistics for shared tables are reset every
> 15 seconds when autovacuum is enabled, which it is by default.  I
> don't observe this phenomenon when autovacuum is disabled.

OK, so it's just that pgstat_vacuum_tabstat() gets run by autovacuum.
So either form of Alvaro's patch should fix it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Vacuuming anything zeroes shared table stats
Next
From: Greg Smith
Date:
Subject: Re: Controlling Load Distributed Checkpoints