Re: Vacuuming Questions

From: John Gardner <john(dot)gardner(at)tagish(dot)co(dot)uk>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Vacuuming Questions
Date: 2008-04-23 21:04:09
Message-ID: 480FA449.2050708@tagish.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joshua D. Drake wrote:
> On Wed, 23 Apr 2008 16:27:33 +0100
> John Gardner <john(dot)gardner(at)tagish(dot)co(dot)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?

Well, we're using middleware technology to load balance and cluster the
PostgreSQL backends

>
>> 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?

OK, well initially, the vendor told us to stagger the vacuumdb command
every couple of hours, but latterly they are telling us to vacuum a
specific table. The table contains the transactions that are used for
rollback if any particular node in the cluster needs to be restarted.

>
>> 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?
>>

Thanks

John

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2008-04-23 21:26:31 Re: Create temporary function
Previous Message Colin Wetherbee 2008-04-23 20:52:37 Re: query question really cant give a summary here so read the body ;-)