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 1hEdRW-0007KG-7P for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 17:24:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEdRU-0002qi-7P for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 17:24:52 +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 1hEdRT-0002nI-R0 for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 17:24:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEdRR-0007PI-L7 for pgsql-general@postgresql.org; Thu, 11 Apr 2019 17:24:50 +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 x3BHOive021386; Thu, 11 Apr 2019 13:24:44 -0400 From: Tom Lane To: Alvaro Herrera cc: rihad , Jeff Janes , pgsql-general General Subject: Re: When do vacuumed pages/tuples become available for reuse? In-reply-to: <20190411165033.GA19432@alvherre.pgsql> References: <20190411165033.GA19432@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 11 Apr 2019 12:50:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <21384.1555003484.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Apr 2019 13:24:44 -0400 Message-ID: <21385.1555003484@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-Apr-11, rihad wrote: >> 2019-04-11 19:39:44.450844500=C2=A0=C2=A0 tuples: 19150 removed, 272581= 1 remain, 465 are dead but not yet removable > What Jeff said. This vacuum spent a lot of time, only to remove miserly > 19k tuples, but 2.7M dead tuples remained ... probably because you have > long-running transactions preventing vacuum from removing them. I think you misread it --- I'm pretty sure "N remain" is referring to live tuples. Maybe we should adjust the wording to make that clearer? regards, tom lane