Re: Duplicate values found when reindexing unique index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Duplicate values found when reindexing unique index
Дата
Msg-id 13941.1199038148@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Duplicate values found when reindexing unique index  ("Mason Hale" <masonhale@gmail.com>)
Ответы Re: Duplicate values found when reindexing unique index  ("Mason Hale" <masonhale@gmail.com>)
Список pgsql-bugs
"Mason Hale" <masonhale@gmail.com> writes:
> Given my experience, the reliability of unique indexes is becoming somewhat
> suspect. Please help. ;-)

Well, as in the previous report, there is not enough information here to
offer much chance of understanding what's going wrong.

Have you tried reindexing that other index with the same columns in the
other order?  My guess is that there really are duplicate entries in the
table; if so the other one should fail too.  If so, please try to
identify the duplicated values, along the lines of

    select guid, feed_id from entry group by 1,2 having count(*) > 1

and show us the system columns (ctid,xmin,xmax,cmin,cmax) from the
tuples having duplicate value(s).  Note that you should probably disable
indexscan and bitmapscan while doing this probing, so as not to have the
queries use the suspect indexes.

This is 8.2.5 right?  Was the DB loaded fresh into 8.2.5, or was it
inherited from previous 8.2.x release(s)?

BTW, what are the datatypes of the index columns?

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: BUG #3845: tray icon that service is running
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Duplicate values found when reindexing unique index