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 1gCNlJ-0004dM-5J for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 11:43:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCNlH-00034p-Cy for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 11:43:43 +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 1gCNlH-00034i-0t for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 11:43:43 +0000 Received: from sonic315-35.consmr.mail.gq1.yahoo.com ([98.137.65.59]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCNl9-00010B-G3 for pgsql-general@postgresql.org; Tue, 16 Oct 2018 11:43:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1539690213; bh=Gi7IgAJsaoTxY1oOJTkuAF87w7Th510PoDd5xlKoJ/g=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=Y20cgM7ZquTIJDtixjZWAHP6Ipcs9c/QVu3h7z19HDeCOVwUc+RimuB6gxPiognDZ+cRDjiZ6U49SrBgOp6igczGZZ05/1hl+OwQyGCLA2/zRVb3UAaHqjNuA3pOpkPc5zRzEwdUrXf8AvEpvqb9LOBf/FIpi0IFEG5tBlhWMGCcmStninUUbXhIH8W/GhhKRFkTslof0/gbH9aKn3vvLC3EEwQDB8BaH8kGgYOz4kNkI0/715/2/jQ7/ZXim8yAG1a5iKz9ix82JY4eF2Wfu+AQRMHC+T8CxGbcCzqx6RhPU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KzwUfkGU9yHwFJ2nuRKoCzBpNOolvs82SKgAM pBi0DzAFxXXo9bYMhvviS2JEj2d64_qxpf_wrXAQ6SdMSRXXCdQFifLuac.nA6FbiwCqE_kL0xnC v Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Tue, 16 Oct 2018 11:43:33 +0000 Date: Tue, 16 Oct 2018 11:39:31 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "adrian.klaver@aklaver.com" , "pgsql-general@postgresql.org" Message-ID: <1616578723.4975272.1539689971671@mail.yahoo.com> 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> Subject: Re: Enabling autovacuum per table MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4975271_786939971.1539689971670" X-Mailer: WebService/1.1.12579 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: 6529 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_4975271_786939971.1539689971670 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Adrian for sharing the facts and docs..=C2=A0 Is there a possibility to disable auto analyze=C2=A0 if we set autovacuum_a= nalyze_scale_factor to 100% and autovacuum_analyze_threshold =3D 0? Thanks,=C2=A0Rijo Roy=C2=A0 Sent from Yahoo Mail on Android=20 =20 On Mon, 15 Oct 2018 at 6:48 pm, Adrian Klaver = wrote: On 10/15/18 1: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? The docs opinion: https://www.postgresql.org/docs/10/static/sql-createtable.html "autovacuum_enabled, toast.autovacuum_enabled (boolean) =C2=A0 =C2=A0 Enables or disables the autovacuum daemon for a particular ta= ble.=20 If true, the autovacuum daemon will perform automatic VACUUM and/or=20 ANALYZE operations on this table following the rules discussed in=20 Section 24.1.6. If false, this table will not be autovacuumed, except to=20 prevent transaction ID wraparound. See Section 24.1.5 for more about=20 wraparound prevention. Note that the autovacuum daemon does not run at=20 all (except to prevent transaction ID wraparound) if the autovacuum=20 parameter is false; setting individual tables' storage parameters does=20 not override that. Therefore there is seldom much point in explicitly=20 setting this storage parameter to true, only to false. " >=20 > Thanks, > Rijo Roy >=20 > Sent from Yahoo Mail on Android=20 > --=20 Adrian Klaver adrian.klaver@aklaver.com =20 ------=_Part_4975271_786939971.1539689971670 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Adrian for sharing the facts and docs.. 

Is there a possibility to disable auto analyze  if we set autov= acuum_analyze_scale_factor to 100% and autovacuum_analyze_threshold =3D 0?<= /div>

Thanks, 
Rijo Roy 

On Mon, 15 Oct 2018 at 6:48 pm, Adrian Klaver
<= div><adrian.klaver@aklaver.com> wrote:
= On 10/15/18 1:01 AM, Rijo Roy wrote:
> Hello Experts,<= br clear=3D"none">>
> 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
> parameter autovacuum =3D off in Postgresql.conf
>
> I am using Postgresql 10 on Linux 6.9.>
> According to me, it won't wor= k without setting autovacuum =3D on except
> for Temp= late0 database. What is your opinion?

= The docs opinion:

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

    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 Sectio= n 24.1.5 for more about
wraparound prevention. Note that= the autovacuum daemon does not run at
all (except to pr= event transaction ID wraparound) if the autovacuum
param= eter is false; setting individual tables' storage parameters does
not override that. Therefore there is seldom much point in explic= itly
setting this storage parameter to true, only to fal= se.

"

>
> Than= ks,
> Rijo Roy
>
> Sent from Yahoo Mail on Android

> <<= a shape=3D"rect" href=3D"https://go.onelink.me/107872968?pid=3DInProduct&am= p;c=3DGlobal_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=3Dym&= amp;af_sub1=3DInternal&af_sub2=3DGlobal_YGrowth&af_sub3=3DEmailSign= ature" target=3D"_blank">https://go.onelink.me/107872968?pid=3DInProduct&am= p;c=3DGlobal_Internal_YGrowth_AndroidEmailSig__AndroidUsers=E2=81=A1_wl=3Dy= m=E2=81=A1_sub1=3DInternal=E2=81=A1_sub2=3DGlobal_YGrowth=E2=81=A1_sub3=3DE= mailSignature>


--
Adrian Klaver
adrian.klaver@aklaver.com

------=_Part_4975271_786939971.1539689971670--