Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC2m5-0000lb-Ni for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 13:19:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gC2m2-0000ju-Lp for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 13:19:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC2m0-0000jm-OS for pgsql-general@lists.postgresql.org; Mon, 15 Oct 2018 13:19:06 +0000 Received: from [64.147.123.24] (helo=wout1-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC2lq-0001hj-Ms for pgsql-general@postgresql.org; Mon, 15 Oct 2018 13:19:04 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id F13701EC; Mon, 15 Oct 2018 09:18:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 15 Oct 2018 09:18:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=7 aO4a2MJ4etWSyKoN5cuKr4vIbkngQKygrKBp3cS7aY=; b=qf22cVGka1Qf8FgfT 7pX0cqwI05SOQExfM5+0HUr0nuSxVpF7a9YF0/Kx8c5/KSYGvJIm+z54XMNW7nJO bT5i3ccyJO4q45w8yrTMC8wQqD9SlRi8GJ9PIMue1bZgpuI3ke8xG7/TMDPJU1J2 SctYUOwycxf/Bqgc/JUmkIsbHr8inWNX4kupuAoqCgu4PUmpmUwctEUSbHmssVbj sGbp9WdxBXyPJO1xFjRA2rDdLQMmUxhTDiBdolvtrGjFXl/Vk28Xmj02U3o60VJq 6hNzncVhiKIlW0/n7MDE098OJ8we7x6Zxz/1Q7gFXLIOas3hBMPmF2Iepj2xgPug eiNow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=7aO4a2MJ4etWSyKoN5cuKr4vIbkngQKygrKBp3cS7 aY=; b=whBvBWPt1yA55ZAgD3SuwlWYf2zC1tujsTD9x6V/YF9a2UnNdiBCjcnxV h4Vob5RFe5WvqLRWg1gm/xAHZ1asZgJmLr7JEVLbG9fn+FreF5gasTQWGhREKB0w 9ODEUgTwXoYWy6k3nLXB8Nfl/Z8ewzXZJ2M7u9jPdbBZEy0vD4abpDxWDOiNbBi2 IoFrxBFAdfk4SE5lA0udCViUPhv7/voSVph7d1FplMp1WnZBcrqKNt4zSUL4rsvz YpCYgDjSntRyDl/AzN8bRoNboK2COz39iHv6jOeogZqG8fgJP8Pl5AULrgZfBTD/ zacHzxHf+2V0CnIN/oHAO9EF5vBcA== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id D8492E4439; Mon, 15 Oct 2018 09:18:30 -0400 (EDT) Subject: Re: Enabling autovacuum per table To: "rjo_roy@yahoo.com" , "pgsql-general@postgresql.org" References: <76007915.10489869.1539590480467.ref@mail.yahoo.com> <76007915.10489869.1539590480467@mail.yahoo.com> From: Adrian Klaver Message-ID: <3fdb56ff-77b1-99f0-a548-0fc4eb95cb4a@aklaver.com> Date: Mon, 15 Oct 2018 06:18:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <76007915.10489869.1539590480467@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.24 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > -- Adrian Klaver adrian.klaver@aklaver.com