Re: duplicate key in unique index pg_statistic_relid_att_index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Andrew Bartley" <abartley(at)evolvosystems(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: duplicate key in unique index pg_statistic_relid_att_index
Date: 2002-10-30 18:23:04
Message-ID: 255.1036002184@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Andrew Bartley" <abartley(at)evolvosystems(dot)com> writes:
> On a regular basis now I am getting duplicate keys in unique index pg_stati=
> stic_relid_att_index.

This is most curious. AFAICS it should not be possible.

> Could this be cause by in insert into a table that i=
> s being "vacuum analyse" 'd ?

Nope.

> I have tried reindexing the database, but it always fails because there are=
> duplicate rows in pg_statisitic.

Do a "DELETE FROM pg_statistic" and then re-analyze everything; should
fix it.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Overholt 2002-10-30 18:23:32 Re: Can't start rhdb-admin
Previous Message Francisco Reyes 2002-10-30 18:21:53 Replacing a table