Re: BUG #3724: Duplicate values added to table despite unique index
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #3724: Duplicate values added to table despite unique index |
| Дата | |
| Msg-id | 21754.1194365792@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #3724: Duplicate values added to table despite unique index ("Mason Hale" <masonhale@gmail.com>) |
| Ответы |
Re: BUG #3724: Duplicate values added to table despite unique index
|
| Список | pgsql-bugs |
"Mason Hale" <masonhale@gmail.com> writes:
> However running the same query on the original 8.2.4 database returns zero
> rows:
> prod_1=> select page_id, count(*) from topic_version_page where
> topic_version_id = 263 group by 1 having count(*) > 1;
> page_id | count
> ---------+-------
> (0 rows)
Is that still true if you do the query with enable_indexscan = off
and enable_bitmapscan = off? If you see matching rows then, I'd
suspect a corrupt index in the 8.2.4 installation --- does REINDEXing
it succeed?
For that matter, do you still see dups if you prevent use of the index
in the 8.2.5 query? Maybe it's that index that is corrupt.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера