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 1gC04W-0001go-74 for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 10:26:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gC04U-000108-Bm for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 10:25:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC04T-000101-Qf for pgsql-general@lists.postgresql.org; Mon, 15 Oct 2018 10:25:58 +0000 Received: from sonic311-21.consmr.mail.gq1.yahoo.com ([98.137.65.202]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC04R-0004Bz-2r for pgsql-general@postgresql.org; Mon, 15 Oct 2018 10:25:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1539599152; bh=Vn8daGdw0lqPc7lDFxCK9G2LvpwyImyv/6GsQ4CP+E8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=a/gHiCjbySrfa9iPiewNq7uwtUXI7idjm4IMQ3TEW1U1omqeDXRSA4L8Q3wC/sovuTpl0niJwoLeX/vDc41moBO6DpgJiPKDSEmuR5E0/yiCdA6OIej+ZpN45AINZcHYHEwmbcbYsTcy0HCy9qvIzUCqiZodhQ8XVgVd3k3PgjQQrGx6lYgJOCVg4HBLTYPDmWiDUBxXQCAi06Yq+7TYnmxRnbcaunUqzWwJjowqHT375xcsfMcig6rXsVh/NdAFvmN813y4q6AJQwySI+JIJxXwaA5tzxjfuSNen8fiogMCd1nRQoo2mRXNm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6eJ i2EX9v3lAS3PPhDgSXTszBwip4OHgHVfNyNJdI5q4G9kSlAQ63wO8hvuiE2xr2yTE8wNaI0dFntP B Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Mon, 15 Oct 2018 10:25:52 +0000 Date: Mon, 15 Oct 2018 10:25:47 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "a.zakirov@postgrespro.ru" , "pgsql-general@postgresql.org" Message-ID: <839519694.10529501.1539599147122@mail.yahoo.com> In-Reply-To: <078d5504-ac33-ea9a-5ff5-85adfadbb1bc@postgrespro.ru> References: <76007915.10489869.1539590480467.ref@mail.yahoo.com> <76007915.10489869.1539590480467@mail.yahoo.com> <078d5504-ac33-ea9a-5ff5-85adfadbb1bc@postgrespro.ru> Subject: Re: Enabling autovacuum per table MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10529500_1986153210.1539599147121" X-Mailer: WebService/1.1.12512 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.32.1; Android/8.0.0; HUAWEIDUK-L09; HWDUK; HUAWEI; DUK-L09; 4.02; 1768x1080;) Content-Length: 3541 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_10529500_1986153210.1539599147121 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yeah when age(relfrozenxid) goes beyond the limit Postgresql will invoke th= e autovacuum session to avoid a wraparound issue.. But here that's not the = case..=C2=A0 Sent from Yahoo Mail on Android=20 =20 On Mon, 15 Oct 2018 at 2:58 pm, Arthur Zakirov = wrote: On 10/15/18 11:01 AM, Rijo Roy wrote: > Hello Experts, >=20 > Is there any possibility for autovacuum to work on a user table if we set > Alter table sometable set (autovacuum_enabled =3D true) ; even if the=20 > parameter autovacuum =3D off in Postgresql.conf >=20 > I am using Postgresql 10 on Linux 6.9. >=20 > According to me, it won't work without setting autovacuum =3D on except= =20 > for Template0 database. What is your opinion? I think you are right, autovacuum won't vacuum and analyze a table=20 without setting autovacuum =3D on. But PostgreSQL might want to force=20 vacuum if a table is at risk of wraparound. --=20 Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company =20 ------=_Part_10529500_1986153210.1539599147121 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yeah when age(relfrozenxid) goes beyond the limit Postgresql will invoke th= e autovacuum session to avoid a wraparound issue.. But here that's not the = case.. 


On Mon, 15 Oct 2018 at 2:58 pm, Arthur Zakiro= v
<a.zakirov@postgrespro.ru> wrote:
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 somet= able set (autovacuum_enabled =3D true) ; even if the
>= ; parameter autovacuum =3D off in Postgresql.conf
> > I am using Postgresql 10 on Linux 6.9.
>
> According to me, it won't work without set= ting autovacuum =3D on except
> for Template0 databas= e. What is your opinion?


I think= you are right, autovacuum won't vacuum and analyze a table
without setting autovacuum =3D on. But PostgreSQL might want to force <= br clear=3D"none">vacuum if a table is at risk of wraparound.

--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Ru= ssian Postgres Company

------=_Part_10529500_1986153210.1539599147121--