Re: Why is postgres autovacuuming a table that is never updated? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Why is postgres autovacuuming a table that is never updated?
Date
Msg-id 20080430161315.GB21286@alvh.no-ip.org
Whole thread Raw
In response to Re: Why is postgres autovacuuming a table that is never updated?  (Joseph S <jks@selectacast.net>)
List pgsql-general
Joseph S wrote:
> Andrew Sullivan wrote:
>
>>
>>>  2) How can I use pg_autovacuum table to disable autovac for this
>>> table?  The docs are not clear on how to do this.
>>
>> I think that would be a bad idea, given that autovacuum seems to think
>> you need to do it.
>
> I don't want to totally disable it, but I want to change the numbers so
> it happens less frequently.  Since there are no updates I can set
> freeze_min_page to be small and the max between transactions big to keep
> the autovacuum from happening so often.

Agreed, that's a good strategy.  You only need to keep an eye on how
often is pg_clog going to be trimmed.  (The only disadvantage is how
much spaces it occupies on disk.)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Joseph S
Date:
Subject: Re: Why is postgres autovacuuming a table that is never updated?
Next
From: "Dan Armbrust"
Date:
Subject: Re: Deadlock situation?