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 1fkxQN-0005Ln-Gv for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 20:08:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkxQL-00051l-Iq for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 20:08:45 +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 1fkxQL-00051d-5z for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 20:08:45 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkxQE-0001q5-Bp for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 20:08:43 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 99BC421D2A for ; Wed, 1 Aug 2018 16:08:37 -0400 (EDT) Received: from web5 ([10.202.2.215]) by compute6.internal (MEProxy); Wed, 01 Aug 2018 16:08:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= stepheneilert.com; h=content-transfer-encoding:content-type:date :from:in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=2nPOja33Kfn6yC dJSViJuB99bvMYgDDe/OQRfZnnH0E=; b=Bw+KHYHZ08FYavMozf1XEvB0MP6i8L RDJRi7TI5QUgLXDII8IRYTVGgAemuyqKqPzKsqOt46J1zbLQhLj6RMClb4C4GQp5 o118WqIT0nXr/ePyWkq/bhi2fmQ+bBUk/qvPxDgzag+V1Ddu0X++jCViGMlH7PSu htyod00m+KA3s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2nPOja 33Kfn6yCdJSViJuB99bvMYgDDe/OQRfZnnH0E=; b=p94PM9for7Hi2OVxUFupTE mKBdibOPeuH2PoynBB5ca+ypyOSg6CyjCVTQDvfjACM9O4CDShvXvQbIb9fBnWdP gBs3UidpPGXciL/JuMiDCn0QeSEhVe/TlozuiK7e35ZbN902aqKfBWjEWRPSFD95 YWZfDYYzteFrEgdqJVSOIsajSQ95RObY7rRtkdRWmACatnFDnwO5/1GXNFKxcB5U pjpBUa4fCoeC/JjbjXQ9RUX7pRhzXV5AUzcvW3ooma0FYnyOgw6gTsWt49qbj3VH gYr3Orn3gOpotA0G+/azyZZySShIQpyeo3Vqo0BZyAY1297KFT0B5eQu7Q/tlOAQ == X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 635E09E0D5; Wed, 1 Aug 2018 16:08:37 -0400 (EDT) Message-Id: <1533154117.3567315.1460357192.6B184715@webmail.messagingengine.com> From: Stephen Eilert To: pgsql-general@lists.postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_153315411735673153" X-Mailer: MessagingEngine.com Webmail Interface - ajax-2be8cd1b Date: Wed, 01 Aug 2018 13:08:37 -0700 Subject: Re: Template0 datfrozenxid age is 160million and progressing 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> In-Reply-To: <1786421786.471176.1533132923796@mail.yahoo.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --_----------=_153315411735673153 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 160 million is a very low number. I manage production databases which reach this value in a day easily. As other said, 200 million is the default threshold for the anti-wraparound vacuums. I wouldn't worry, specially for template0. That said, there is nothing preventing you from temporarily changing DATALLOWCONN, running vaccuum (which should be very quick) and then changing it back. But you should not have to. I do that in our production database, but only because it suffers from a bad schema design and we ended up with thousands of tables, which is too much for the autovacuum workers to cope alone, so they need a manual "boost". I still don't disable autovacuum. I don't really understand the bit about autovacuum changing query performance. In which scenario would it be preferable to have outdated analyzer statistics? This would be like running a system with garbage collection disabled because GC can increase the amount of free memory. That's the whole point. =E2=80=94 Stephen --_----------=_153315411735673153 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"
160 million is a very low number. I manage production databases = which reach this value in a day easily. As other said, 200 million is the d= efault threshold for the anti-wraparound vacuums. I wouldn't worry, special= ly for template0.

That said, there is nothing preventing you from temporarily changing D= ATALLOWCONN, running vaccuum (which should be very quick) and then changing= it back. But you should not have to.  I do that in our production dat= abase, but only because it suffers from a bad schema design and we ended up= with thousands of tables, which is too much for the autovacuum workers to = cope alone, so they need a manual "boost". I still don't disable autovacuum= .

I don't really understand the bit about autovacuum changing query perf= ormance. In which scenario would it be preferable to have outdated analyzer= statistics? This would be like running a system with garbage collection di= sabled because GC can increase the amount of free memory. That's the whole = point.

=E2=80=94 Stephen

--_----------=_153315411735673153--