pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: rjo_roy@yahoo.com <rjo_roy@yahoo.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Enabling autovacuum per table
Date: Mon, 15 Oct 2018 06:18:29 -0700
Message-ID: <3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com> (raw)
In-Reply-To: <76007915.10489869.1539590480467@mail.yahoo.com>
References: <76007915.10489869.1539590480467.ref@mail.yahoo.com>
	<76007915.10489869.1539590480467@mail.yahoo.com>

On 10/15/18 1:01 AM, Rijo Roy wrote:
> Hello Experts,
> 
> Is there any possibility for autovacuum to work on a user table if we set
> Alter table sometable set (autovacuum_enabled = true) ; even if the 
> parameter autovacuum = off in Postgresql.conf
> 
> I am using Postgresql 10 on Linux 6.9.
> 
> According to me, it won't work without setting autovacuum = on except 
> for Template0 database. What is your opinion?

The docs opinion:

https://www.postgresql.org/docs/10/static/sql-createtable.html
"autovacuum_enabled, toast.autovacuum_enabled (boolean)

     Enables or disables the autovacuum daemon for a particular table. 
If true, the autovacuum daemon will perform automatic VACUUM and/or 
ANALYZE operations on this table following the rules discussed in 
Section 24.1.6. If false, this table will not be autovacuumed, except to 
prevent transaction ID wraparound. See Section 24.1.5 for more about 
wraparound prevention. Note that the autovacuum daemon does not run at 
all (except to prevent transaction ID wraparound) if the autovacuum 
parameter is false; setting individual tables' storage parameters does 
not override that. Therefore there is seldom much point in explicitly 
setting this storage parameter to true, only to false.
"

> 
> Thanks,
> Rijo Roy
> 
> Sent from Yahoo Mail on Android 
> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__Android...;


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (6+ messages)  latest in thread

Message-ID: <3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com>
Permalink:  ../3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com/
Also on:    postgresql.org/message-id/3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rjo_roy@yahoo.com
  Subject: Re: Enabling autovacuum per table
  In-Reply-To: <3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com>
  References: <76007915.10489869.1539590480467.ref@mail.yahoo.com> <76007915.10489869.1539590480467@mail.yahoo.com> <3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox