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 1iAxCn-0007fv-RO for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2019 14:14:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAxCm-0005q3-JD for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2019 14:14:44 +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 1iAxCm-0005pt-9H for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2019 14:14:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAxCg-0001QA-6s for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2019 14:14:43 +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 x8JEEXLe022871; Thu, 19 Sep 2019 10:14:33 -0400 From: Tom Lane To: Jason Ralph cc: "pgsql-general@lists.postgresql.org" Subject: Re: n_live_tup count increase after vacuum In-reply-to: References: Comments: In-reply-to Jason Ralph message dated "Thu, 19 Sep 2019 12:04:21 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22869.1568902473.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 19 Sep 2019 10:14:33 -0400 Message-ID: <22870.1568902473@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jason Ralph writes: > I recently upgraded a neglected DB in our fleet that contains a huge tab= le (1.4B) rows. I ran a vacuum against the huge table, as expected it too= k a long time, but it did finish. > I think I understand most of what the output is saying... one confusing = thing.... > The number of "live " tuples went up..(?) If you're looking at the pg_stat counter, that's only an approximation. It's probably a better approximation now than it was before. regards, tom lane