From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Don Seiler <don@seiler.us>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: template0 needing vacuum freeze?
Date: Mon, 18 May 2020 19:20:27 -0700
Message-ID: <e7c06d4c-e1f7-c91e-d581-5c0cfcc4e810@aklaver.com> (raw)
In-Reply-To: <28914.1589853071@sss.pgh.pa.us>
References: <CAHJZqBAGheciTgcKZ9J=Q=A+CdtH0LOUbtqsX8nSvBS1RKggQg@mail.gmail.com>
<bc9b99b68cb8746a8440935bcb87e38440adbaaf.camel@cybertec.at>
<CAHJZqBBDOmhg488UaCNwzDdoLDxD3YHOF_AkUHVyLmHA4gGeLg@mail.gmail.com>
<28914.1589853071@sss.pgh.pa.us>
On 5/18/20 6:51 PM, Tom Lane wrote:
> Don Seiler <don@seiler.us> writes:
>> On Mon, May 18, 2020 at 1:40 AM Laurenz Albe <laurenz.albe@cybertec.at>
>> wrote:
>>> Perhaps autovacuum never handled "template0" because it concluded (rightly)
>>> that it has to deal with "foo_db" first.
>
>> Yes this DB had a table in it that had been autovacuuming since Feb 2. It's
>> age is half way to wraparound so I'm in the middle of a manual VACUUM
>> FREEZE on it. I'd be interested in knowing if that prevents template0 from
>> autovacuuming itself. There are no other autovacuum jobs running.
>
> I think we did put in a change that would prevent any one database from
> completely consuming autovacuum's attention, even in wraparound-hazard
> situations. Don't recall when.
This?:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=dd9ac7d5d80608a640bb82cffb6a805ce84cf...
which I believe is only for 12 and is in the 12.3 release.
>
> Do you have an idea why autovac was failing to clear the issue on that one
> problem table, though?
>
> regards, tom lane
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, don@seiler.us, laurenz.albe@cybertec.at
Subject: Re: template0 needing vacuum freeze?
In-Reply-To: <e7c06d4c-e1f7-c91e-d581-5c0cfcc4e810@aklaver.com>
References: <CAHJZqBAGheciTgcKZ9J=Q=A+CdtH0LOUbtqsX8nSvBS1RKggQg@mail.gmail.com> <bc9b99b68cb8746a8440935bcb87e38440adbaaf.camel@cybertec.at> <CAHJZqBBDOmhg488UaCNwzDdoLDxD3YHOF_AkUHVyLmHA4gGeLg@mail.gmail.com> <28914.1589853071@sss.pgh.pa.us> <e7c06d4c-e1f7-c91e-d581-5c0cfcc4e810@aklaver.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