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.89) (envelope-from ) id 1hEnTW-0002gQ-BC for pgsql-general@arkaria.postgresql.org; Fri, 12 Apr 2019 04:07: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 1hEnTU-00035a-Jz for pgsql-general@arkaria.postgresql.org; Fri, 12 Apr 2019 04:07:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEnTU-00034N-5t for pgsql-general@lists.postgresql.org; Fri, 12 Apr 2019 04:07:36 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEnTR-0004hI-VA for pgsql-general@postgresql.org; Fri, 12 Apr 2019 04:07:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3B81C21AF2; Fri, 12 Apr 2019 00:07:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 12 Apr 2019 00:07:33 -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=nx7gxRHHS7z+aHlTq0fvx/tJEqR DdZwlKEPTAZF0mXw=; b=tuIoUEzoyNUPpiWKXqGSyIAPYoKsO27kMttYX5mev3l hpJs9N/pFYaxaAEoBNAa3FK62kvmtzn5gUha4WQT/TvcaK5EIyuJEAvruADT+GDd PCYxPB90zmEVK6jKxM2BifS4WBUrxnpWqOtEUB9bCOghGDLzKB8ZYWqsaT9szCEB oTRqRb8e6ItF0Y3zvFg+H5lSrgJRXbbSRb8eQj/p+h9EbqX21pI8xC5s3guW3wdy S+9DtuERMRRdflrt9qTn5brCHFLloHsgrj/rfOutwq7k6dIwtP/NfKb7eZPKk/Mh BF8NNHsKYcgu+sVXle8mMjJDGCQO2idzE3Cc4anevrw== 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=nx7gxR HHS7z+aHlTq0fvx/tJEqRDdZwlKEPTAZF0mXw=; b=ADp50SC4cB98fZV/xBFazw nZighyid78VsBredjyIKCxtjddAFmQ+WbOjsdccZUgsxigFYlLk+nwb6uvvUxSuI A4WYxovQZn+pMt/vbwwcd3mf0eyuTNV0IyhjxmYflHUh1yrwCWBQ7m8SMgpuQ561 7LcdtGHtDTrJ6rBdt5rYFtUklF+zfPufe+rmsPld/3GFUUTEBKS48fYwUAbzPE4W zZUITNw9/pU8qobYiDPHaZoJRU+i6q7a9KL73+TGdQ1HMxCFVhvl24D9okd5Rrut jgto1oD+59MZDcGtu3AQ+CTvBDWmeY/xFOCIazAOxofbnIFMDLk63H6NM7e9OrHw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrvddtgdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvhedurdejleenucfrrghrrghm pehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (mp76f1fb4f.ap.nuro.jp [118.241.251.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 4403F10310; Fri, 12 Apr 2019 00:07:30 -0400 (EDT) Date: Fri, 12 Apr 2019 13:07:27 +0900 From: Michael Paquier To: Michael Lewis Cc: Alvaro Herrera , rihad , Jeff Janes , Tom Lane , pgsql-general General Subject: Re: When do vacuumed pages/tuples become available for reuse? Message-ID: <20190412040727.GH2144@paquier.xyz> References: <44a10837-648b-7cc9-d42a-146bc0c83574@mail.ru> <20190411165033.GA19432@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="STPqjqpCrtky8aYs" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --STPqjqpCrtky8aYs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 11, 2019 at 11:13:17AM -0600, Michael Lewis wrote: > Wouldn't "dead but not yet removable" be high if there were long running > transactions holding onto old row versions? You got it right. You need to look at the number behind the tuples dead, but not removable which is usually a pattern caused by long running transactions holding snapshot references which prevents autovacuum and/or vacuum to do their homework. -- Michael --STPqjqpCrtky8aYs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlywDv8ACgkQnvQgOdby QH0BJg/+PYfJ5n5M/HePRMVwH50hKTXZcP9hod3g9yWz/YeuDB92KZcRTjvExvtw cbddw3k+uXuQ/sbaGqBmw0/1L3ZaAcg2WItj38LnxWQa6lX2z5+5OZV2LiyLQHm8 Iwa00PNc08Q/UE5QEdCM5npuYAD0JkhpsQzCqH+ftyPSib+b4qTdcQsAptLVcxwf aRWbifp8nlJdlKg71V1LhVcCe4vU1LNcHdl0f0idLX76ecNL/PZeXOeyBdDwqRNQ oxbKPONJFHnnGBJSZY6vYFq+xg7XZfySdOsVdMTnTH8GFQl8Z2NjSghy2yHk0Vpz 1IcxlxjqpF1vbNRtx7cM2d94CxcP7KiIzB8CYQ8waA5wCFBpZUfDDnZIvESoWR12 Is8vukDM+JWAOEPnyrvsPHGWOnbxA3P/HG0qtJR+8dTJFpJyqkatb+gByEsLtFgA 3npC7hVLpm6DDuvjAQombbyIjiWWTmzTnH0cUscVEjSkcJT8y87h+revi7ktq3i6 3Nr6EU9e4paPPnTwyAajE6mL8uy/Ax2Fue7h3oC3gjUpRtGPh2Z9d32gD7vilAuM zckiJRsbLvM29r47s4guOhlG5cppFLZ8XOfyCsG5Qw+hWHkyJHjWblKb/35fGLbN l+u/zokl84eSE7bbqbqsmJur9PnhFKHySfALI+b5m4qjVHWue1o= =b/Jg -----END PGP SIGNATURE----- --STPqjqpCrtky8aYs--