REINDEX checking of index constraints

Поиск
Список
Период
Сортировка
От Noah Misch
Тема REINDEX checking of index constraints
Дата
Msg-id 20130721172814.GC126816@tornado.leadboat.com
обсуждение исходный текст
Список pgsql-hackers
Historically, REINDEX would always revalidate any uniqueness enforced by the
index.  An EDB customer reported that this is not happening, and indeed I
broke it way back in commit 8ceb24568054232696dddc1166a8563bc78c900a.
Specifically, REINDEX TABLE and REINDEX DATABASE no longer revalidate
constraints, but REINDEX INDEX still does so.  As a consequence, REINDEX INDEX
is the only form of REINDEX that fixes a failed CREATE INDEX CONCURRENTLY.

Attached patch just restores the old behavior.  Would it be worth preserving
the ability to fix an index consistency problem with a REINDEX independent
from related heap consistency problems such as duplicate keys?

Thanks,
nm

--
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Preventing tuple-table leakage in plpgsql
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: REINDEX checking of index constraints