Re: duplicate key violates unique constraint. (repost)

Поиск
Список
Период
Сортировка
Искать
От
Michael Guerin
Тема
Re: duplicate key violates unique constraint. (repost)
Дата
Msg-id
42E111F3.8070502@rentec.com
Ответ на
Список
Дерево обсуждения
duplicate key violates unique constraint. (repost) Michael Guerin <guerin@rentec.com>
Re: duplicate key violates unique constraint. (repost) Tom Lane <tgl@sss.pgh.pa.us>
Multiple Inserts <operationsengineer1@yahoo.com>
Re: Multiple Inserts Michael Fuhr <mike@fuhr.org>
Re: Multiple Inserts <operationsengineer1@yahoo.com>
Re: duplicate key violates unique constraint. (repost) Michael Guerin <guerin@rentec.com>
I'm still getting this duplicate key violation error on the toast 
table.  I've re-indexed both the main table and the toast table, would 
clustering the table, or recreating the table with a select into fix 
this problem?

Also, I believe this index is created by the database so I shouldn't be 
able to insert data that causes this error, shouldn't the database 
complain a little louder about this error?

-mike

Tom Lane wrote:

>Michael Guerin  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
>  
>

В списке pgsql-novice по дате отправления
От: Sean Davis
Дата:
Сообщение: Re: How to catch a command
От: John DeSoi
Дата:
Сообщение: Re: How to catch a command
FAQ