Re: duplicate key violates unique constraint. (repost)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Guerin <guerin(at)rentec(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: duplicate key violates unique constraint. (repost)
Date: 2005-07-20 18:08:09
Message-ID: 24214.1121882889@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Michael Guerin <guerin(at)rentec(dot)com> writes:
> We're starting to get a number of complaints about "duplicate key
> violations" on a index for one of the toast tables. It started
> happening after our server was brought down over the weekend, so I
> suspect postgresql wasn't shutdown properly. Below is the description
> of the index.

> I'm doing a re-index on the user table that is associated with the toast
> table, is this the right thing to do? Is there something else I should do?

I don't think that will touch the toast table --- you should reindex the
toast table or index explicitly.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Shawn Garbett 2005-07-20 20:30:48 Extending SQL with C, shared library problem
Previous Message Michael Guerin 2005-07-20 16:10:09 duplicate key violates unique constraint. (repost)