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 1gBzAT-0007Nq-Al for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 09:28:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBzAR-0008PY-P3 for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 09:28:03 +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 1gBzAR-0008PO-Bg for pgsql-general@lists.postgresql.org; Mon, 15 Oct 2018 09:28:03 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBzAP-0004wT-7a for pgsql-general@postgresql.org; Mon, 15 Oct 2018 09:28:02 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id F414721C1FA8; Mon, 15 Oct 2018 12:27:59 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.27.237] (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id CA01621C1FA7; Mon, 15 Oct 2018 12:27:59 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1539595679; bh=cR3SsWyVPlapPdeo6U+plqV/r92VzNFXhV9GGedxmmQ=; h=Subject:To:References:From:Date:In-Reply-To; b=pp9xmmfq2T0iYNri9LUkMqaqaHszYd3RY8Ist5CQlSB5jMGollDtvkIV0URt3Z6Np y6eQecKv2AAy116L5AtQ812xeNe73Zb9hR4vOpbX4frskmjTF1xWdnv8yKeaBQQmJa qqwZRmhwX+vaal2HPdLBploybmR/52ImDotOtJhs= 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: Arthur Zakirov Message-ID: <078d5504-ac33-ea9a-5ff5-85adfadbb1bc@postgrespro.ru> Date: Mon, 15 Oct 2018 12:27:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 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 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/15/18 11: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? I think you are right, autovacuum won't vacuum and analyze a table without setting autovacuum = on. But PostgreSQL might want to force vacuum if a table is at risk of wraparound. -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company