Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jGV72-0007zD-O5 for pgsql-general@arkaria.postgresql.org; Mon, 23 Mar 2020 22:00:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jGV71-0002Ud-II for pgsql-general@arkaria.postgresql.org; Mon, 23 Mar 2020 21:59:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jGV71-0002UU-8Z for pgsql-general@lists.postgresql.org; Mon, 23 Mar 2020 21:59:59 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGV6t-0004yV-RC for pgsql-general@lists.postgresql.org; Mon, 23 Mar 2020 21:59:58 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 982185C01A2; Mon, 23 Mar 2020 17:59:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 23 Mar 2020 17:59:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=qPvzafbC7mS6+KoqJFawTyRSy/h 8DjrLjcWnQSjH1Uc=; b=UTxQkXmT66AzOyT+AW5tfXFDnp+LN1xwjoAc+FwU+Xv ZsLelDpMItG/S8YUAIbCnHmDC/ZXBHsAkiv//Ofjoz98EDUDyLd6HYm9UYbV4qb6 uxZMndv/nWkLOKMU2nir2VWBuP92sto0IAV6N1rln0+9bsrzLf5R44YQlBxYP1Vj 9K1190QfuY9+gATWsNtk6bz4R+HopTNzL4pHzS1MiWpI9yC2iA6IGhrymjh/1j1/ Gg0eJckltlpPCpGaZC33OQ056nXn7Jjy3agsoszPipqsThqL/+iqzfWK4dimt4A7 R6B2kTzkTMgq9VUlO5Odl7xZJ0ES5XQqO+9TZHb5wUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=qPvzaf bC7mS6+KoqJFawTyRSy/h8DjrLjcWnQSjH1Uc=; b=4UMex7lv8ozOM93ldyHVoI 6vp2w2PRlzm8td7CRA+S05cmovkchcCdSLYW3XKr+dIBYaEauBYw9PFf1fdADw+S ikrjSkoxQGkcDhh6M2IBFDriEgfRSBT7KU6FNnF8neE0neqGActm/Sh8hNXYB0p3 bW51zreVpzzlvJIFAwWLeYUVYp9SnGvMxCr85tbik0W2OtxndakN9PrvdR77vDd6 YLFovHfAYWS/ghOCGfDbkZQdVeBLrGFZED2QafrMLb2VSrIpAGi7TCey/G3qWnmE suI3+MVgd6prsbjsGpHUR5DN9HoQM8FKqEbemH5KHgOu1ZWFX7CINc/5REBW/ibw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegkedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuffhomh grihhnpehpohhsthhgrhdrvghsnecukfhppeeijedrudeitddrvddujedrvdehtdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvsh esrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id E850D30624E4; Mon, 23 Mar 2020 17:59:48 -0400 (EDT) Date: Mon, 23 Mar 2020 14:59:47 -0700 From: Andres Freund To: Justin King Cc: Julien Rouhaud , pgsql-general@lists.postgresql.org, michael@paquier.xyz, kgrittn@gmail.com Subject: Re: PG12 autovac issues Message-ID: <20200323215947.axm5oalgkkrnd3r2@alap3.anarazel.de> References: <20200319223520.2mnjt6l3yybgnd77@alap3.anarazel.de> <20200319235626.wz4b57hbhuuy4w7j@alap3.anarazel.de> <20200320190317.gdxwzexdfutymqs6@alap3.anarazel.de> <20200323152247.GB52612@nol> <20200323162303.s7ay5hjdvimtkz6u@alap3.anarazel.de> <20200323194725.GC52612@nol> <20200323200051.qzyqvnips7o3ai4g@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-03-23 16:31:21 -0500, Justin King wrote: > This is occurring in our environment right now (started about 30 min > ago). Here 's the latest logs (grepped by vacuum): > > Mar 23 20:54:16 cowtn postgres[15569]: [12-1] 2020-03-23 20:54:16.542 > GMT [15569] LOG: automatic vacuum of table "feedi.production.tita": > index scans: 1 > Mar 23 20:54:27 cowtn postgres[15654]: [8-1] 2020-03-23 20:54:27.964 > GMT [15654] LOG: automatic vacuum of table > "feedi.production.distributed_virtual_schedule": index scans: 1 Hm, unfortunately you've cut off the details in the subsequent lines. There's a few newlines in the output. Any chance you could re-post with those included? > > > > I wonder if what might be happening is that we're somehow missed/failed > > > > to update relfrozenxid and/or datfrozenxid. If you manually vacuum some > > > > table in the oldest database, but that is *NOT* the oldest table itself, > > > > does the problem "resolve" itself? > > postgres=# SELECT datname > , age(datfrozenxid) > , current_setting('autovacuum_freeze_max_age') > FROM pg_database; > datname | age | current_setting > -----------+-----------+----------------- > postgres | 202375735 | 200000000 > template1 | 202345459 | 200000000 > template0 | 132459914 | 200000000 > feedi | 132459914 | 200000000 > (4 rows) Can you show the oldest tables in 'feedi'? Or, hm, actually, could you just post the result of all the queries from the "What is:" section in https://postgr.es/m/20200323162303.s7ay5hjdvimtkz6u%40alap3.anarazel.de > Since this is occurring right now, what else would be useful to > capture? You'd asked about a GDB -- do you want that of the main > process or the autovac worker? Unless you can give me gdb access directly, I don't yet have enough data to suggest what exactly we would want to analyze with gdb in your case. It'd be helpful if you could change log_min_messages to DEBUG1 and reload the configuration (not restart!). Greetings, Andres Freund