Re: Autovacuum on by default?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: "'Alvaro Herrera'" <alvherre(at)commandprompt(dot)com>, "'Matthew T(dot) O'Connor'" <matthew(at)zeut(dot)net>, "'Peter Eisentraut'" <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Autovacuum on by default?
Date: 2006-08-17 17:36:23
Message-ID: 200608171736.k7HHaND27673@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Larry Rosenman wrote:
> Bruce Momjian wrote:
> > Larry Rosenman wrote:
> >> Alvaro Herrera wrote:
> >>> Bruce Momjian wrote:
> >>>> Matthew T. O'Connor wrote:
> >>>>> Bruce Momjian wrote:
> >>>>>> Matthew T. O'Connor wrote:
> >>>>>>
> >>>>>>> and increasing the log level when autovacuum actually fires off
> >>>>>>> a VACUUM or ANALYZE command.
> >>>>>>>
> >>>>>>
> >>>>>> This was not done because the logging control only for autovacuum
> >>>>>> was going to be added. Right now, if you want to see the vacuum
> >>>>>> activity, you end up seeing debug stuff too (very ugly).
> >>>>>
> >>>>> Any chance we can make this change before release? I think it's
> >>>>> very important to be able to look through the logs and *know* that
> >>>>> you tables are getting vacuumed or not.
> >>>>
> >>>> Agreed. I just IM'ed Alvaro and he says pg_stat_activity should
> >>>> now show exactly what autovacuum is doing (and if it doesn't,
> >>>> let's fix it). I think that is the best solution to the monitoring
> >>>> problem, rather than throwing lines in the server logs.
> >>>
> >>> Well, the problem is that it shows what it's *currently* doing, but
> >>> it doesn't let you know what has happened in the last day or
> >>> whatever. It can't answer "has table foo been vacuumed recently?"
> >>> or "what tables haven't been vacuumed at all during this week?"
> >>
> >> I added last vacuum and last analyze (both auto and manual) dates in
> >> the 8.2 tree.....
> >
> > Uh, where? I don't see it in pg_class, pg_database, or pg_autovacuum.
> > Is it somewhere else?
>
> pg_stat_*_tables

Oh, great. I had forgotten about that. Thanks, so we are OK with
monitoring autovacuum for 8.2.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2006-08-17 17:38:33 Re: Autovacuum on by default?
Previous Message Matthew T. O'Connor 2006-08-17 17:35:51 Re: Autovacuum on by default?