Re: Vacuum error on database postgres - Mailing list pgsql-admin

From Tom Lane
Subject Re: Vacuum error on database postgres
Date
Msg-id 4001.1157121669@sss.pgh.pa.us
Whole thread Raw
In response to Vacuum error on database postgres  ("Paul B. Anderson" <paul.a@pnlassociates.com>)
Responses Re: Vacuum error on database postgres  ("Paul B. Anderson" <paul.a@pnlassociates.com>)
Re: Vacuum error on database postgres  (andy <andy@squeakycode.net>)
List pgsql-admin
"Paul B. Anderson" <paul.a@pnlassociates.com> writes:
> I did delete exactly one of each of these using ctid and the query then
> shows no duplicates.  But, the problem comes right back in the next
> database-wide vacuum.

That's pretty odd --- I'm inclined to suspect index corruption.

> I also tried reindexing the table.

Get rid of the duplicates (actually, I'd just blow away all the
pg_statistic entries for each of these tables) and *then* reindex.
Then re-analyze and see what happens.

Worst case you could just delete everything in pg_statistic, reindex it,
do a database-wide ANALYZE to repopulate it.  By definition there's not
any original data in that table...

            regards, tom lane

pgsql-admin by date:

Previous
From: Luís Sousa
Date:
Subject: Problem using pg_restore with -a option
Next
From: "Paul B. Anderson"
Date:
Subject: Re: Vacuum error on database postgres