Re: Disable autovacuum on specific tables

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: Eliot Gable <egable+pgsql-general(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Disable autovacuum on specific tables
Date: 2012-10-24 20:06:15
Message-ID: 50884A37.6000002@optionshouse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/24/2012 02:57 PM, Eliot Gable wrote:

> In general, autovacuum seems to work well on most of the tables I deal
> with. However, in a couple of specific cases, it seems to fail
> miserably. I would like to switch to manual vacuuming on those tables
> and disable auto-vacuuming for those tables alone. Is this possible?

ALTER TABLE foo SET (autovacuum_enabled = false,
toast.autovacuum_enabled = false);

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-444-8534
sthomas(at)optionshouse(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2012-10-24 20:15:09 Re: Disable autovacuum on specific tables
Previous Message Eliot Gable 2012-10-24 19:57:43 Disable autovacuum on specific tables