| От | Tom Lane |
|---|---|
| Тема | Re: Duplicate primary key and also the OID !!!! |
| Дата | |
| Msg-id | 19120.1049648348@sss.pgh.pa.us обсуждение |
| Ответ на | Duplicate primary key and also the OID !!!! ("Gaetano Mendola" <mendola@bigfoot.com>) |
| Список | pgsql-admin |
"Gaetano Mendola" <mendola@bigfoot.com> writes:
> How is it possible have the oid and the id_user_traffic (
> serial primary key ) duplicated ? Any idea ?
Have you had any power failures lately? Tried to copy a running
database via "tar" or "cp"? Anything interesting like that?
There are ways for multiple versions of a row to all appear good,
if something happens that breaks the synchronization between datafiles
and pg_clog. AFAIK these all reduce to DBA error (copying a live
database) or hardware misfeasance (disk drive claiming write complete
before it really is, and then losing the data in a power failure).
Also, what Postgres version are you using? Awhile back there was a bug
that allowed a sequence to appear to go backward in a crash.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера