Re: autovacuum? - Mailing list pgsql-admin

From Pavan Deolasee
Subject Re: autovacuum?
Date
Msg-id 2e78013d0804171959k60d2f95ao5e735023433fbe43@mail.gmail.com
Whole thread Raw
In response to autovacuum?  (Jesper Krogh <jesper@krogh.cc>)
List pgsql-admin
On Fri, Apr 18, 2008 at 1:18 AM, Jesper Krogh <jesper@krogh.cc> wrote:
>
>
>  So it seems to be running.

Yes.

> But shouldn't it hit the table a lot more?

That depends on your autovac settings, especially
autovacuum_vacuum_scale_factor. If it is set to 0.2 (which is
default), then autovacuum would hit the table whenever the percentage
of dead tuples is at least 20%. Again, the percentage of dead tuples
depends on your table size and rate of insert/update/delete.

>  How do I check that it is somehow near optimal?
>

Again that depends on how much table bloat you can sustain. If you
don't want the table to bloat too much, you can set aggressive
settings for autovac. But that would trigger autovac more often and
may have performance implication on your other concurrent queries.


Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

pgsql-admin by date:

Previous
From: "Phillip Smith"
Date:
Subject: Re: Database update problem from crontab on ubuntu server
Next
From: "Ryan Wells"
Date:
Subject: pg_dump Performance