]> granicus.if.org Git - postgresql/commit
Restore REINDEX constraint validation.
authorNoah Misch <noah@leadboat.com>
Tue, 30 Jul 2013 22:36:52 +0000 (18:36 -0400)
committerNoah Misch <noah@leadboat.com>
Tue, 30 Jul 2013 22:39:34 +0000 (18:39 -0400)
commitb3ddd1063567de4a4af8dae6cc96cb33466cf954
treea11b31b62cd432bccc61720f2b816fe6db396ece
parent9822dc38e193f5f9e6f088e6566cfcb1dba49db2
Restore REINDEX constraint validation.

Refactoring as part of commit 8ceb24568054232696dddc1166a8563bc78c900a
had the unintended effect of making REINDEX TABLE and REINDEX DATABASE
no longer validate constraints enforced by the indexes in question;
REINDEX INDEX still did so.  Indexes marked invalid remained so, and
constraint violations arising from data corruption went undetected.
Back-patch to 9.0, like the causative commit.
src/backend/commands/indexcmds.c
src/test/regress/expected/create_index.out
src/test/regress/sql/create_index.sql