Re: Vacuuming Questions - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Vacuuming Questions
Date
Msg-id 20080423085720.47c5f324@commandprompt.com
Whole thread Raw
In response to Vacuuming Questions  (John Gardner <john.gardner@tagish.co.uk>)
Responses Re: Vacuuming Questions  (John Gardner <john.gardner@tagish.co.uk>)
List pgsql-general
On Wed, 23 Apr 2008 16:27:33 +0100
John Gardner <john.gardner@tagish.co.uk> wrote:

> We have two PostgreSQL servers (8.2) running in a cluster.

Could you be a bit more specific about what you mean by: in a cluster?

> Now, we're not seeing any problems with performance and we're not
> seeing any bloat but I have a couple of questions which I hope some
> of you can help me out on.
>
> 1) Is using the autovacuum daemon and running vacuumdb from a cron
> job overkill?

Not necessarily. Autovacuum can get behind when managing larger tables
that are actively used. This is better in 8.3 because you can have more
than one autovacuum worker.

>
> 2)  The vendor of the clustering software suggests that I regularly
> run vacuum --all --analyze on a specific table.  Surely, if I'm
> running vacuumdb --all --analyze isn't this just a wrapper for
> running the vacuum --all --analyze command anyway?

Well you have stated two different things here.

1. The vendor is stating you should vacuum a specific table
2. You are vacuuming the whole database.

Do you have a specific table that they are talking about? Is it
particularly busy? Say a session table?


> I guess that I'm
> asking why would I want to run vacuum --all --analyze on a specific
> table, when I regularly run vacuumdb --all --analyze on all databases?
>

Yes those two are identical.

Joshua D. Drake


--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate



pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Debian etch, backport postgresql 8.3 experiences?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: initdb in 8.3