Search Postgresql Archives

Re: autovacuum not running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ben <bench@xxxxxxxxxxxxxxx> writes:
> Hm, I assumed it wasn't running because pg_stat_all_tables shows the last
> vacuum from several weeks ago, and this is an active db. Also, I see no 
> vacuum activity in the logs. But "show autovacuum" does show it being 
> on....

Just to double-check, make sure stats_start_collector and
stats_row_level are on, and confirm that you see the stats collector
process in "ps".  Also, do you have any of the autovac threshold
parameters at nondefault values?

The autovac process doesn't run continuously, so not seeing it in ps
is not proof that there's a problem.  But if pg_stat_all_tables isn't
showing any evidence of vacuums happening, that's probably bad.

> So if it is running after all, how can I track down why things aren't 
> getting vacuumed? What log level are the autovacuum logs at?

I think you've gotta crank it up to DEBUG2 or so, which is gonna be
noisy :-(

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux