From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Steben <msteben@autorevenue.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: REINDEX question
Date: Fri, 22 Jun 2007 13:24:47 -0400
Message-ID: <24033.1182533087@sss.pgh.pa.us> (raw)
In-Reply-To: <015901c7b4de$86bb9c10$b501a8c0@D1RPQZB1>
References: <015901c7b4de$86bb9c10$b501a8c0@D1RPQZB1>
"Mark Steben" <msteben@autorevenue.com> writes:
> We are at Postgres 7.4.5. I have encountered inaccuracies
> after reindexing related to the statistics posted back to the PG_CLASS
> table
reindex enters the exact number of tuples indexed into
pg_class.reltuples. If there are more than you expect, that says there
are some dead-but-not-removable tuples in the relation. Check for old
open transactions that might still be able to see old versions of rows.
VACUUM VERBOSE should report the same number of unremovable rows BTW.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, msteben@autorevenue.com
Subject: Re: REINDEX question
In-Reply-To: <24033.1182533087@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