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 1fkruc-0003g1-C0 for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:15:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkrua-0003cM-St for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:15:36 +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 1fkrua-0003cF-Fp for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 14:15:36 +0000 Received: from sonic308-8.consmr.mail.gq1.yahoo.com ([98.137.68.32]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkruU-0007J0-At for pgsql-general@postgresql.org; Wed, 01 Aug 2018 14:15:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1533132927; bh=zr6di7RbEJkwc04oqhCr441d4hVfNF78sY84QZvVPKY=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=MCGdl8hX5C66kAAFVnFDD97tmI4HsQN6Y40TxKSIItfaHWdaGa6USqxNnA/OpCbcMA6tH/LBJZeuqPQOWPXetBvYOVueYe6iAaM8mjsT3Do0K4KhWYvitjkdVLDj6EAGW0HsBo/vfM/DSpNsl0CSWsFT4iXcpGXiJa9tb07q13Gt9etyPBsBWXSXTz+axz+5cPuM45gJYF3ahVspur+SOwxHMtdPvQk57wr8qV/jbzTS5385H1yXfTzK6Ijlf50a10ORhd1FxPBrA9TIzc0OOmDXoN5TJZnvojU2CBQ1Fh0cY8yu8Ust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kkmEDZr6LrxFji4mWKWPr e0NzN5dK.u6w- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Wed, 1 Aug 2018 14:15:27 +0000 Date: Wed, 1 Aug 2018 14:15:23 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "tgl@sss.pgh.pa.us" Cc: "pgsql-general@postgresql.org" Message-ID: <1786421786.471176.1533132923796@mail.yahoo.com> In-Reply-To: <27295.1533132507@sss.pgh.pa.us> References: <1190777028.356668.1533122919329.ref@mail.yahoo.com> <1190777028.356668.1533122919329@mail.yahoo.com> <27295.1533132507@sss.pgh.pa.us> Subject: Re: Template0 datfrozenxid age is 160million and progressing MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_471175_1887063973.1533132923794" 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: 4091 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_471175_1887063973.1533132923794 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Tom,=C2=A0 Thanks for the advice. Autovacuum is disabled in the environment and I cann= ot take a call on enabling it back. I can only run manual vacuum on the dat= abase 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 Thanks,=C2=A0Rijo Roy=C2=A0 Sent from Yahoo Mail on Android=20 =20 On Wed, 1 Aug 2018 at 7:38 pm, Tom Lane wrote: Rijo = Roy writes: > I am observing a steady increase in age(datfrozenxid) of template0 databa= se in my Postgresql 10 running in a RHEL 6.9Currently, it is at 166846989 a= nd I am not able to vacuum the same as datallowconn is false. Thought of se= tting it to true and perform a vacuum freeze on the same. Before doing that= , I wanted to check whether I should be worrying for something here or can = I just go ahead with my plan.=C2=A0 I would leave well enough alone.=C2=A0 Unless you've changed the default values of autovacuum parameters, that behavior is perfectly normal and not worrisome.=C2=A0 autovacuum should kick in and do something about it at 200 million xacts (autovacuum_freeze_max_age). =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 regards, tom lane = =20 ------=_Part_471175_1887063973.1533132923794 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Tom, 

Thanks for the advice= . Autovacuum is disabled in the environment and I cannot take a call on ena= bling it back. I can only run manual vacuum on the database as the dev team= fears autoanalyze changing the query performance. 
Do you still think we don't need to= take any actions. 

Than= ks, 
Rijo Ro= y 


On Wed, 1 Aug 2018 at 7:38 pm, Tom Lane
<tgl@sss.pgh.pa.us> wrote:
Rijo Roy &= lt;rjo_roy@yahoo.com> writes:

> I am observing a ste= ady increase in age(datfrozenxid) of template0 database in my Postgresql 10= running in a RHEL 6.9Currently, it is at 166846989 and I am not able to va= cuum the same as datallowconn is false. Thought of setting it to true and p= erform a vacuum freeze on the same. Before doing that, I wanted to check wh= ether I should be worrying for something here or can I just go ahead with m= y plan. 


I would leave well= enough alone.  Unless you've changed the default
va= lues of autovacuum parameters, that behavior is perfectly normal
and not worrisome.  autovacuum should kick in and do somethi= ng
about it at 200 million xacts (autovacuum_freeze_max_a= ge).

      &n= bsp;     regards, tom lane
------=_Part_471175_1887063973.1533132923794--