Skip site navigation (1) Skip section navigation (2)

Re: VACUUM vs auto-vacuum daemon

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: "Sabin Coanda" <sabin(dot)coanda(at)deuromedia(dot)ro>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: VACUUM vs auto-vacuum daemon
Date: 2007-06-13 14:46:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
In response to "Sabin Coanda" <sabin(dot)coanda(at)deuromedia(dot)ro>:

> Hi Bill,
> ...
> >
> > However, you can get some measure of tracking my running VACUUM VERBOSE
> > on a regular basis to see how well autovacuum is keeping up.  There's
> > no problem with running manual vacuum and autovacuum together, and you'll
> > be able to gather _some_ information about how well autovacuum is
> > keeping up.
> Well, I think it is useful just if I am able to synchronize the autovacuum 
> to run always after I run vacuum verbose. But I don't know how to do that. 
> Do you ?

No, I don't.  Why would you want to do that?

Personally, I'd be more interested in whether autovacuum, running whenever
it wants without me knowing, is keeping the table bloat under control.

If this were a concern for me (which it was during initial testing of
our DB) I would run vacuum verbose once a day to watch sizes and what
not.  After a while, I'd switch to once a week, then probably settle on
once a month to ensure nothing ever gets out of hand.  Put it in a cron
job and have the output mailed.

Bill Moran
Collaborative Fusion Inc.

Phone: 412-422-3463x4023

In response to


pgsql-performance by date

Next:From: Joshua D. DrakeDate: 2007-06-13 15:08:56
Subject: Re: VACUUM vs auto-vacuum daemon
Previous:From: Vivek KheraDate: 2007-06-13 14:02:40
Subject: Re: Best use of second controller with faster disks?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group