On Mon, 12 Jan 2004, Tom Lane wrote:
> Dave Smith <dave.smith@candata.com> writes:
> > I am running 7.2 and when doing a vacuum I am getting the following
> > error....
>
> > ERROR: Cannot insert a duplicate key into unique index
> > pg_statistic_relid_att_index
>
> Hmm, if it were a slightly newer version I'd be interested in how you
> got into this state, but since it's 7.2 I'll write it off as an old
> bug. The easiest way out, seeing that pg_statistic is all derived data,
> is just
> DELETE FROM pg_statistic;
> (possibly VACUUM FULL pg_statistic here)
> re-ANALYZE everything
> You should try the nearby suggestion to REINDEX first, but I'm betting
> that that doesn't help.
Didn't this happen with parallel vacuum / analyzes running in the olden
days?