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 1fks9t-0004bK-5O for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:31:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fks9q-0006tf-LS for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:31:22 +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 1fks9q-0006tX-9Q for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 14:31:22 +0000 Received: from sonic303-22.consmr.mail.gq1.yahoo.com ([98.137.64.203]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fks9n-0007iL-C4 for pgsql-general@postgresql.org; Wed, 01 Aug 2018 14:31:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1533133877; bh=0psCzk6pQ5vgrWntT9ZcvAuMJHqpNxqGK5skEcNzga0=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=BoUotv5RKWhOnsgxsBWvWVOUl5OP0B0sd80xU4MzuBcKQRa7uOCLBMRjAbgXwbt6NPvmICl8p3lXYYu8peTTJ4J/4B3Wc/DGd43sNqKvee9GGTOQY1q8QodlUjMhN9VOGdGlvsYJdqU4i7gYZtAWDn3V4sakndyrO5NvVQbwzp561VWVroWKKDq+LVj5akHcW/4Bcj543x7uAFQ27AzagX1iiu/cJ2ix+o/8EEnVn+hk28cYjm35mQpwippszqaJXyf1EQxdPsGjTxGttKqEiE03VPoD+erut6NDLqOF5JO7DDTQNjtG00W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QLcbtiLnOLPcmPPiOe_ASPXOeDJBM2W TngHTFotHNUs- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Wed, 1 Aug 2018 14:31:17 +0000 Date: Wed, 1 Aug 2018 14:31:11 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "tgl@sss.pgh.pa.us" Cc: "pgsql-general@postgresql.org" Message-ID: <1878935582.502633.1533133871925@mail.yahoo.com> In-Reply-To: <28019.1533133464@sss.pgh.pa.us> References: <1190777028.356668.1533122919329.ref@mail.yahoo.com> <1190777028.356668.1533122919329@mail.yahoo.com> <27295.1533132507@sss.pgh.pa.us> <1786421786.471176.1533132923796@mail.yahoo.com> <28019.1533133464@sss.pgh.pa.us> Subject: Re: Template0 datfrozenxid age is 160million and progressing MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_502632_1850832827.1533133871924" X-Mailer: WebService/1.1.12206 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.29.3; Android/8.0.0; HUAWEIDUK-L09; HWDUK; HUAWEI; DUK-L09; 4.02; 1768x1080;) Content-Length: 3672 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_502632_1850832827.1533133871924 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I agree.. But unfortunately it is the business call and we cannot alter it.= . I am planning to convince them by keeping autovacuum_analyze_threshold to= a high value so that auto analyse will not kick in very often leaving the = autovacuum to do its job..=C2=A0Please advise.=C2=A0 Thanks,=C2=A0Rijo Roy=C2=A0 Sent from Yahoo Mail on Android=20 =20 On Wed, 1 Aug 2018 at 7:54 pm, Tom Lane wrote: Rijo = Roy writes: > Thanks for the advice. Autovacuum is disabled in the environment and I ca= nnot take a call on enabling it back. I can only run manual vacuum on the d= atabase as the dev team fears autoanalyze changing the query performance.= =C2=A0Do you still think we don't need to take any actions.=C2=A0 IMO, the action you need to take is enabling autovacuum.=C2=A0 We've seen many many people go down the path you are taking, and it's generally led to no good in the end.=C2=A0 Manual vacuuming tends to miss stuff, and it cannot react adequately to activity spikes. =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 regards, tom lane = =20 ------=_Part_502632_1850832827.1533133871924 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I agree.. But unfortunately it is the business call and we cannot alter it.= . I am planning to convince them by keeping autovacuum_analyze_threshold to= a high value so that auto analyse will not kick in very often leaving the = autovacuum to do its job.. 
Please advise. 

Thanks, 
R= ijo Roy 
On Wed, 1 Aug 2018 at 7:54 pm, Tom La= ne
<tgl@sss.pgh.pa.us> wrote:
= Rijo Roy <rjo_roy@yahoo.com> writes:
> Thanks for the advice. Autovacuum is disabled in the environmen= t and I cannot take a call on enabling it back. I can only run manual vacuu= m on the database as the dev team fears autoanalyze changing the query perf= ormance. Do you still think we don't need to take any actions. 
IMO, the action you need to take is ena= bling autovacuum.  We've
seen many many people go do= wn the path you are taking, and it's
generally led to no = good in the end.  Manual vacuuming tends
to miss stu= ff, and it cannot react adequately to activity spikes.


&n= bsp;           regards, tom lane
------=_Part_502632_1850832827.1533133871924--