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 1hEdTb-0007Uh-Kt for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 17:27:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEdTa-0004RK-Ah for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 17:27:02 +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 1hEdTZ-0004RD-SB for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 17:27:02 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEdTX-0007Vy-IQ for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 17:27:00 +0000 Received: by mail-ot1-x344.google.com with SMTP id o74so5950643ota.3 for ; Thu, 11 Apr 2019 10:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=4UbDyQpvze8+67tay/pVcAgLk2RAHU28j8mPCVmJdMI=; b=IAbvAKyieYN6N4v1lzyABjstTfBbKP7QrWXWkFjHNpRPIZoWuX/z6jdlKcq9Gs9PD5 SMV8MVYEfTfYyPoGfvQKoG+0Wwwn/XS8CZjX62dAeoapR8FAV7VmagIu9+F/lVMjHolu Kf1QtcDiESwBVEc/bV+q/0esFeWAsrwtFxE1y5NmWHj3EqFgeMYDXvUBAnN3zT+hBpPo uuVhE4zRsBMJUip2xfamuRscqdZK9DcyLM0OyBkjqzRTFqrBrKe5EFyY7oGzOZ/NLV+C JcbicqF/yV8z4Lx2R++nhSFu4MXOlSqoqbZCB1MmvRNH/JxIa0edXHHeYtstp4RUH3Vu eu7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=4UbDyQpvze8+67tay/pVcAgLk2RAHU28j8mPCVmJdMI=; b=T7URTu5M37O/ElPdYioQ2A8XDTglUcRveolhRtLGkb7VZPoTyMsWd68cTaVQskQpz1 ek+j/2osebyH08voLX8vwdM7PcC/2YTaHhSqwgUC/OGUEeQ4UgZa2uCIshX6ArbfrJA0 7T1XlgNL9o3b+KQFNojG7xgwmIOGcJ02QsOg8Utf52LI0GX56BbH5Z6xkDOxXHp/Ablt vY/aVoI78I/yFqrPCBCYtM8NzU2qbE5Uw03JPmCNl34M7X8Hb25f2yZhfdCjEcri7aLa YkOzmj9fKNA+H6VpWhP3DtX4nYb6oNqkroD8trpBxbgDjSwCIAhRr1zpMynenzLbM6iC oazw== X-Gm-Message-State: APjAAAVm6OJ34knNAUneIqwCPJ8AfodbxvJ9U5azYpZu519oRywacRqR 0QOKjRJwWcsB5/QC7eqcLVqlDJ6Y/80= X-Google-Smtp-Source: APXvYqxFAMP7je2qYrlT3Vcs6MPzTCKFVjdTjdPMR0HhXwkXpG57UgDHlEDz7t4rB9sTIsMnPYn6uw== X-Received: by 2002:a9d:77da:: with SMTP id w26mr31061299otl.17.1555003618246; Thu, 11 Apr 2019 10:26:58 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id x89sm18523939ota.30.2019.04.11.10.26.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 10:26:57 -0700 (PDT) Subject: Re: When do vacuumed pages/tuples become available for reuse? To: pgsql-general@lists.postgresql.org References: <20190411165033.GA19432@alvherre.pgsql> <21385.1555003484@sss.pgh.pa.us> From: Ron Message-ID: Date: Thu, 11 Apr 2019 12:26:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <21385.1555003484@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/11/19 12:24 PM, Tom Lane wrote: > Alvaro Herrera writes: >> On 2019-Apr-11, rihad wrote: >>> 2019-04-11 19:39:44.450844500   tuples: 19150 removed, 2725811 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. Because "465 are dead but not yet removable" are the dead tuples that remain instead of 2.7M? > Maybe we should adjust the wording to make that > clearer? > > regards, tom lane -- Angular momentum makes the world go 'round.