Re: vacuumdb is failing with NUMBER OF INDEX TUPLES NOT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Denis Braekhus <denis(at)startsiden(dot)no>
Cc: Lonni Friedman <netllama(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: vacuumdb is failing with NUMBER OF INDEX TUPLES NOT
Date: 2004-05-08 16:31:28
Message-ID: 26185.1084033888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Denis Braekhus <denis(at)startsiden(dot)no> writes:
> Indicating that they should produce the same results, but that they work
> differently. I am not sure what that implies, but maybe someone else knows ?

The only difference the docs are talking about is what kind of lock is
held while the rebuild proceeds.

A reindex builds a new index file from scratch, and AFAICS should give
the same results as dropping/recreating the index --- at least in terms
of what's in the file proper. The only theory I can come up with for
your experience is that there was some corruption in the system catalog
rows describing the index. That would not get fixed by a reindex.
However, I haven't the foggiest idea what sort of corruption might
allow the index to seem to work (and not, say, crash the reindex itself
which is going to use that information...) yet allow problems to appear
much later on. Too bad the evidence is gone now.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Welty 2004-05-08 17:37:54 Re: New DBManager 2.3.0 is Released
Previous Message Alexander Vlasenko 2004-05-08 16:16:08 unsubscride pqsql-general