From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Smith <dave.smith@candata.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Vacuum Error
Date: Mon, 12 Jan 2004 17:31:26 -0500
Message-ID: <5543.1073946686@sss.pgh.pa.us> (raw)
In-Reply-To: <1073933333.13458.17.camel@playpen>
References: <1073933333.13458.17.camel@playpen>
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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, dave.smith@candata.com
Subject: Re: Vacuum Error
In-Reply-To: <5543.1073946686@sss.pgh.pa.us>
References: <1073933333.13458.17.camel@playpen> <5543.1073946686@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