Re: BUG #17361: Unique index constraint inconsistence

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17361: Unique index constraint inconsistence
Дата
Msg-id 2499549.1641859704@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17361: Unique index constraint inconsistence  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17361: Unique index constraint inconsistence  (Роман Григорович <atzedus@gmail.com>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Indexes:
>     "parts_stock_stat_pkey" PRIMARY KEY, btree (id)
>     "parts_stock_stat_lower_stock_type_id_idx" UNIQUE, btree (lower(name),
> stock_type_id)

> Following reindex command failed:
> db=# reindex table parts_stock_stat;
> ERROR:  could not create unique index
> "parts_stock_stat_lower_stock_type_id_idx"
> DETAIL:  Key (lower(name), stock_type_id)=(ha_hr/50, 4) is duplicated.

How long have you had this database?  If it's older than your last
OS upgrade, it's possible that the index has become corrupt as a
result of OS-level collation changes.  See

https://wiki.postgresql.org/wiki/Locale_data_changes

            regards, tom lane



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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17361: Unique index constraint inconsistence
Следующее
От: Роман Григорович
Дата:
Сообщение: Re: BUG #17361: Unique index constraint inconsistence