From: Stephen Eilert <contact@stepheneilert.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Template0 datfrozenxid age is 160million and progressing
Date: Wed, 01 Aug 2018 13:08:37 -0700
Message-ID: <1533154117.3567315.1460357192.6B184715@webmail.messagingengine.com> (raw)
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>
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.
— Stephen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: contact@stepheneilert.com
Subject: Re: Template0 datfrozenxid age is 160million and progressing
In-Reply-To: <1533154117.3567315.1460357192.6B184715@webmail.messagingengine.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> <1533154117.3567315.1460357192.6B184715@webmail.messagingengine.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox