Re: How to stop autovacuum for daily partition old tables

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to stop autovacuum for daily partition old tables
Date: 2016-01-21 00:44:14
Message-ID: CANu8FiytvrOfu_g3UgOy3A+fazixS-e4ETeReMUhxTftsPXvOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

On Wed, Jan 20, 2016 at 6:22 PM, AI Rumman <rummandba(at)gmail(dot)com> wrote:

> Hi,
>
> I have a table with daily partition schema on Postgresql 9.1 where we are
> keeping 2 years of data.
> Often I experience that autovacuum process is busy with old tables where
> there is no change. How can I stop it?
> Please advice.
>
> Thanks.
>
>

--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message AI Rumman 2016-01-21 00:54:57 Re: How to stop autovacuum for daily partition old tables
Previous Message (Daniel Stolf) 2016-01-21 00:29:34 adding a bdr node using bcv backup