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 1fks3D-00048W-QH for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:24:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fks3B-00023u-K4 for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:24:29 +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 1fks3B-00023n-8B for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 14:24:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fks38-0007V5-Gz for pgsql-general@postgresql.org; Wed, 01 Aug 2018 14:24:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w71EOOIV028020; Wed, 1 Aug 2018 10:24:24 -0400 From: Tom Lane To: "rjo_roy@yahoo.com" cc: "pgsql-general@postgresql.org" Subject: Re: Template0 datfrozenxid age is 160million and progressing In-reply-to: <1786421786.471176.1533132923796@mail.yahoo.com> 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> Comments: In-reply-to Rijo Roy message dated "Wed, 01 Aug 2018 14:15:23 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <28018.1533133464.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Aug 2018 10:24:24 -0400 Message-ID: <28019.1533133464@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rijo Roy writes: > Thanks for the advice. Autovacuum is disabled in the environment and I c= annot take a call on enabling it back. I can only run manual vacuum on the= database 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. We've seen many many people go down the path you are taking, and it's generally led to no good in the end. Manual vacuuming tends to miss stuff, and it cannot react adequately to activity spikes. regards, tom lane