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 1hEdX5-0007hJ-SF for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 17:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEdX4-00038k-FY for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 17:30:38 +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 1hEdX3-0002yP-Vo for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 17:30:38 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEdWu-0007Za-KA for pgsql-general@postgresql.org; Thu, 11 Apr 2019 17:30:36 +0000 Received: by mail-qt1-x844.google.com with SMTP id h39so8081674qte.2 for ; Thu, 11 Apr 2019 10:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=vXeW2pA4Dlkhq72snv4fFdZIYjT1l4ZUZm7hPCbzQjw=; b=ezVTJXz0c+h8lDuNQzXFKrYpzVWCiCVewephFS8YO2/eSW/smkvks587X4JmX2bWto K0bSBBbH7+KZv+i4xi3FafQz9VaMcbQ26Zatcl7IiJXkFLy9Ceiqr6QGjVZNgnjsEfy5 VPiUHr/cQy7oroVUfypxcBlwvRQx1g/R51RM84HreCrhsQAEXx99ROhIEop82aBVoxbH +isB+TrGJdjWeOz6SHw/WFJKXgLFy41H1ivn1bq4n+G4J+amL/LkzcWA3mpQyUjlrdkX FRTo12NMpAxwAWJyvOE36GnOzQi1FHAzhwfo8dfnwj+IWpZLlyDC9AWoYJ6XQnBye3Yy 5bCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vXeW2pA4Dlkhq72snv4fFdZIYjT1l4ZUZm7hPCbzQjw=; b=R3OVu6ftW/Vi4nOLiwH5ywTIWek4xMEg4li2BM8KyhBfh14tEE6WBU1jDl5Gxv9/Ex 6DZWlxljKko3qATa79zqiEcKb6zF2PYEOcGYHuI/3KQ0Z3Oqjn4no4kwzFjeMufkeRBU PvsIFH7Zqb1lGWvs4qHTpdn87BrWooj8TMqAglUhpd0rbdak3t27QHYcVi6dppQUVnjS vHMdTKTi62LeaBkuJZFVD9tTX25n6MnYTc0jChQovVBOvOv1pv3LsEmak5uF0wuKAC9Z WBMiw2jx/o7lR95gqiYOYGkhlA52Kpx4W5PWCE3PZWs9V1zlKRZuePEiDpKnFYPSlLtk 5N5g== X-Gm-Message-State: APjAAAV+Q5kpzEmkg7F3TCZm+m6EbJlE3It5ZUjxDZgwA9S4FrIyWLY7 VQdDvD6gvkhM2SYYlBhqYVsMpQ== X-Google-Smtp-Source: APXvYqwYeaeAhbBX4feudmB63Et+HtYBZmXefsFUOpdJt3/EeyYzdc4P2honxeCiok8UT8O+7H3l3A== X-Received: by 2002:ac8:355c:: with SMTP id z28mr40348281qtb.286.1555003827639; Thu, 11 Apr 2019 10:30:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id 6sm22694017qtt.8.2019.04.11.10.30.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 10:30:27 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4BC47120FBF; Thu, 11 Apr 2019 13:30:25 -0400 (-04) Date: Thu, 11 Apr 2019 13:30:25 -0400 From: Alvaro Herrera To: Tom Lane Cc: rihad , Jeff Janes , pgsql-general General Subject: Re: When do vacuumed pages/tuples become available for reuse? Message-ID: <20190411173025.GA21019@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <21385.1555003484@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-11, 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. Maybe we should adjust the wording to make that > clearer? Oh, I've been confused with that many times, Not good trying to decode confusing messages while simultaneously figuring out trying to figure out logical decoding bugs that have already been fixed :-( Yeah, let's reword that. I've had to read the source half a dozen times because I always forget what each number means. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services