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 1jars2-0004K6-Nr for pgsql-general@arkaria.postgresql.org; Tue, 19 May 2020 02:20:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jars0-0004if-5R for pgsql-general@arkaria.postgresql.org; Tue, 19 May 2020 02:20:40 +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 1jarry-0004iW-C4 for pgsql-general@lists.postgresql.org; Tue, 19 May 2020 02:20:39 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jarrr-0001cZ-2q for pgsql-general@postgresql.org; Tue, 19 May 2020 02:20:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BA35F5C0181; Mon, 18 May 2020 22:20:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 18 May 2020 22:20:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=q ykARVNM5BhCYMHj402M4JVkZyTi/YNq2Eh6giKuBbU=; b=WBF/StGJcfK6sJHBh tm4KEGO3WtdThTLlozNzwiU6cJX4IgFcJNSNslppgfIi7PBww4hEuPuSss2dZhby pl5e0s6nnzISrJeAXvLz7CgpwUgBoFV5HN7j/F1iTGWqk/jKB7Sb8fIPDfZAAwoz byOtUeFQ24QuMSm4HYAefDWfF7gk15SbkZr2LQd2AGFHyOcmDTC2liGAYeeHpLO5 HfoBRPhrNQCfobGE5AFyCWvMd/sGBMrpsMJG0RehY2Lmemv/0pdiJqXf/cGc1raO DGwuJKhUoHnFxDW5GYTDoX83wy8aI6HkyBDTWAdHAGrlCK1ZgFMhMaQt1gww1oGx lxjrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=qykARVNM5BhCYMHj402M4JVkZyTi/YNq2Eh6giKuB bU=; b=jxAsluCGnuKA9HHnv//rQ0VrY7rPo3kLiKG8+eDzYhzjViu1VYQkIS0Ve Y00tjoAmaQj3EgpcwxK8k40gCHxP8Hr0rAjUpi7lD4AxBksOGLC+q6g1NVODvm7V eI3Z3isptGPfpCzGX81VDlS/8oKbJqfIfEmwnHBp+pfbNa9Uhlqa4ZcFACIQ0voG X0GBg0nLps61daiBza/sP7xSMvM2e8EAajfRQUKw1rDRW6iFrBBwLq2fz4lIE+AZ oh96qMwkEjaMgZIsNA3e8gU+oCNvwRSVO/7VaqYnZbhRgJkdNwF5RXiGUCvrxIUU /4VwYTTcl5TA9ESZMKSUKlMc9zk+A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtiedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevteejtdeikeetfefhhffhteelvdekffevudegjeeu kefhgfdvieeliedtkeevhfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 89014306641A; Mon, 18 May 2020 22:20:28 -0400 (EDT) Subject: Re: template0 needing vacuum freeze? To: Tom Lane , Don Seiler Cc: Laurenz Albe , Postgres General References: <28914.1589853071@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Mon, 18 May 2020 19:20:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <28914.1589853071@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/18/20 6:51 PM, Tom Lane wrote: > 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. This?: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=dd9ac7d5d80608a640bb82cffb6a805ce84cf112 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