Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jarPY-0003Yh-6j for pgsql-general@arkaria.postgresql.org; Tue, 19 May 2020 01:51:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jarPX-0002MJ-0Q for pgsql-general@arkaria.postgresql.org; Tue, 19 May 2020 01:51:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jarPW-0002MB-Oi for pgsql-general@lists.postgresql.org; Tue, 19 May 2020 01:51:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jarPU-0001NZ-OD for pgsql-general@postgresql.org; Tue, 19 May 2020 01:51:13 +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 04J1pBN4028915; Mon, 18 May 2020 21:51:11 -0400 From: Tom Lane To: Don Seiler cc: Laurenz Albe , Postgres General Subject: Re: template0 needing vacuum freeze? In-reply-to: References: Comments: In-reply-to Don Seiler message dated "Mon, 18 May 2020 20:45:07 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28913.1589853071.1@sss.pgh.pa.us> Date: Mon, 18 May 2020 21:51:11 -0400 Message-ID: <28914.1589853071@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Don Seiler writes: > On Mon, May 18, 2020 at 1:40 AM Laurenz Albe > 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. Do you have an idea why autovac was failing to clear the issue on that one problem table, though? regards, tom lane