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 1jI77x-0006wm-Jq for pgsql-general@arkaria.postgresql.org; Sat, 28 Mar 2020 08:47:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jI77u-0002ob-QU for pgsql-general@arkaria.postgresql.org; Sat, 28 Mar 2020 08:47:34 +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 1jI77s-0002oT-PD for pgsql-general@lists.postgresql.org; Sat, 28 Mar 2020 08:47:34 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jI77n-0005SU-3h for pgsql-general@lists.postgresql.org; Sat, 28 Mar 2020 08:47:32 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B1AFC5C028F; Sat, 28 Mar 2020 04:47:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 28 Mar 2020 04:47:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=+snI87cl5TKyZOyeOIzXxLvp4/C jclBtzd3YUr1xA0s=; b=WTaBm12vNi2eu5n8VZYbubWCWDfQSOlUSCs5sqRy/4O Go2IweFFsTYGq2VIudz+RqgOYOgFqH8iVr0GeSDbaePaW6QWk3T+8pzchQEA7zId AC6QR75doZgM+diY8YxE+L+HPdXvESCLhQlISgu2KRUgkRD9hYRgCVMmExSN5SHX 5dArJo0JQIF3Ewk8K29hl5aSyVVe5LNlFK3p+DHgaTmbXOlyJnmIW7HKwRi4TBzg qx26VchaVnLeDtzxSlqgusvIea6gUxyfc9/Odg/eeqAgD2QV+dMtGq68KWCOdUyV PZFSJj85nWQYTqGUWI1ywz0ZmQojMnJspp7J6uKJXYA== 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=+snI87 cl5TKyZOyeOIzXxLvp4/CjclBtzd3YUr1xA0s=; b=SgGX0tUCrj3XjnAwwEQS9g 1vkG3/RZi8rr1xVap5peu+ImpEla5lb6SnjWyaiLMjNdV86PAs1JFmx3m9ebEbrV 2O7hG/Mzwoh3Bp9F5e68SxsYuA/IrnoBJI1ngyBnBir8WFgW8bbovomxWydUyoSk Jn0zIODrRUv1elIDzXiqF22ZBbZI7ap4iwgmnhFKFEYJjta6Dy1DfEvCuCNqYLvA hSETncKmusFE7p3F9itzO4awU3cgk3KK/sdIeSMeS6AunU1VV0Slgq4gP4TIi0lV mytUyC8I3Vy/f09Xlw5mylfI/IW2ZkogwHYCAicpQZ3cTAuuFiv4vFyzOC1E+Krw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeitddguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlh esphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id C0CDA3280060; Sat, 28 Mar 2020 04:47:22 -0400 (EDT) Date: Sat, 28 Mar 2020 17:47:19 +0900 From: Michael Paquier To: Justin King Cc: Andres Freund , Julien Rouhaud , pgsql-general@lists.postgresql.org, kgrittn@gmail.com Subject: Re: PG12 autovac issues Message-ID: <20200328084719.GA29155@paquier.xyz> References: <20200323200051.qzyqvnips7o3ai4g@alap3.anarazel.de> <20200324052606.GE1836@paquier.xyz> <20200324054039.ulrxbzo2ycy7pu5i@alap3.anarazel.de> <20200324061238.GG1836@paquier.xyz> <20200324194259.pidupqxtqnquk4wu@alap3.anarazel.de> <20200326014108.GA2199@paquier.xyz> <20200327050622.GB2133@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 27, 2020 at 05:10:03PM -0500, Justin King wrote: > Sounds great. I will email you directly with a link! Thanks. From the logs, the infinite loop on which autovacuum jobs are stuck is clear. We have a repetitive number of anti-wraparound and non-aggressive jobs happening for 7 shared relations every 5 seconds or so and autovacuum is not able to do something else: pg_auth_members pg_authid pg_database pg_replication_origin pg_shseclabel pg_subscription pg_tablespace However I have found a correlation between all the tests I have done on my own laptop, all the tests Julien and I have done in our internal company buildfarm, and your logs. We have 10 shared catalogs in the system and the problem does not happen with the three following ones, unable to trigger an anti-wraparound non-aggressive job: pg_db_role_setting pg_shdepend pg_shdescription Not sure yet what that is, but it is hard to believe that it is just a coincidence. > This is encouraging. As I mentioned, we have a workaround in place for > the moment, but don't hesitate if you need anything else from me. > Thanks for jumping in on the thread, it was nice validation to know > that I wasn't the only one seeing the issue! Yes. We have been able to confirm that 2aa6e33 is a direct cause of your problem. -- Michael --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5/DxcACgkQnvQgOdby QH1IVw//TFRZTVvjhEfTrvt99uHztb6v1ceOUI6ArUAlPEFtvnUKc4kXgkz6SXns BEYT7crhO6kqVf6Ms3xTXQuZblS5aGjRjoRUo/3+llxUvl/fsjX3WXgpSRq/UEpw RuUAsOGyWouLOWQMeIchRh9GsKS9SFpG3FExqf5NstEedociApDJvLD1SMSX7MZb nh7QXUz9z75TRhCZtz/I3w6Sk6wWc2TWgRVgCeNNw2WgNqR6bcOxl9u8iYZENR6b 7shkRElAQ1J5X6MfBSYQpF3RVOzpvRCFFCTDMJWp0L+DNJUMkrqSfULzoN19h+Tr BMcyZJulQho3rhg4AlnTXtOwUjZFWs7ZnOG4YxppFEs/Gx8E4sOAcV8KInmYzQOX yurxWx6CEgmsb7dYPGl6WeCdlCN3i86ZnYZZMdgeOjIbR+cmoh2aP87O2P45ch4S uRozIuZQMl76sDtK5jNpcn0vKGyn+6M+JNAoPo6ED3p1AJ4yfu4Z3fD9WcObS3pJ yYYGGpTxYTQEz5uC3KQh6l4bzvVdByJXTAOO8QvJjC8newhXLh0DqGPp1UE/GArU jRO2WFJu9S4EACUZT58mo80ju1XHzuDp4+3qvvoDlz1ttjzPZUGUMWo0buAnKlCB tBQ/8MhUC+qcGhGI6weNsOXAtQDGSl6nb2a/c3qvrFlnXE24oYs= =U4Tr -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--