Re: [GENERAL] please help me recover from duplicate key in unique index
В списке pgsql-general по дате отправления:
| От | Ed Loehr |
|---|---|
| Тема | Re: [GENERAL] please help me recover from duplicate key in unique index |
| Дата | |
| Msg-id | 387288B0.93040702@austin.rr.com обсуждение исходный текст |
| Ответ на | please help me recover from duplicate key in unique index (Charles Martin <martin_pgsql@yahoo.com>) |
| Список | pgsql-general |
Charles Martin wrote: > Please help me recover our database from what I think > is a duplicate key in unique index problem. This may not help, and forgive my asking the obvious, but have you done a SELECT on the table and actually *seen* duplicate 'id' values in the SERIAL column? That would surprise me because I didn't think it was possible to create duplicates in the scenario you describe. The SERIAL type is really just a sequence, and its values are unique across all transactions (I hope!). IIRC there is some opportunity for wierdness if the sequence cache setting has been "adjusted" incorrectly (http://www.postgresql.org/docs/postgres/sql-createsequence.htm). > When I try to vacuum, I get this: > > ERROR: Cannot insert a duplicate key into a unique > index > I didn't realize vacuum tried to insert anything. Maybe a system table insert? Cheers, Ed Loehr
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера