Re: vacuum analyze - cannot insert duplicate key...

From: Einar Karttunen <ekarttun(at)cs(dot)Helsinki(dot)FI>
To: Patrick Coulombe <pcoulombe(at)mediacces(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: vacuum analyze - cannot insert duplicate key...
Date: 2001-10-01 13:43:30
Message-ID: 20011001164330.A10436@cs.helsinki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, Oct 01, 2001 at 09:31:51AM -0400, Patrick Coulombe wrote:
> medias=> vacuum analyze;
> ERROR: Cannot insert a duplicate key into a unique index
>
>
> why i get this message, it's not the first time that i vacuum analyze my db.
> but today, for a reason that i don't know, i got this message.
You have probably somehow gotten a duplicate a value to a column
that has a unique constraint. This can happen if you for example
use copy and don't make sure that there are no conflicts...

> can you help me to find the error and fix it.
> [PostgreSQL 6.5.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66]
>
> i know, my version of postgresql is old. if you have a url who explain step
> by step how to upgrade to 7.1, i will probably find the time to do it.
>
Yes, you should upgrade in any case. The upgrade
should be done by dumping the db installing new
pg and restoring it. If you want to make sure that
nothing bad happens take a backup of your original
installation & databases before you start with the
upgrade.

- Einar Karttunen

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Patrick Coulombe 2001-10-01 13:54:54 vacuum analyze - cannot insert duplicate key... (2)
Previous Message Patrick Coulombe 2001-10-01 13:31:51 vacuum analyze - cannot insert duplicate key...