From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jason Ralph <jralph@affinitysolutions.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: n_live_tup count increase after vacuum
Date: Thu, 19 Sep 2019 10:14:33 -0400
Message-ID: <22870.1568902473@sss.pgh.pa.us> (raw)
In-Reply-To: <BL0PR04MB6499FBA59BCB44333404F6B9D0890@BL0PR04MB6499.namprd04.prod.outlook.com>
References: <BL0PR04MB6499FBA59BCB44333404F6B9D0890@BL0PR04MB6499.namprd04.prod.outlook.com>
Jason Ralph <jralph@affinitysolutions.com> writes:
> I recently upgraded a neglected DB in our fleet that contains a huge table (1.4B) rows. I ran a vacuum against the huge table, as expected it took 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, jralph@affinitysolutions.com
Subject: Re: n_live_tup count increase after vacuum
In-Reply-To: <22870.1568902473@sss.pgh.pa.us>
References: <BL0PR04MB6499FBA59BCB44333404F6B9D0890@BL0PR04MB6499.namprd04.prod.outlook.com> <22870.1568902473@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox