]> git.ipfire.org Git - thirdparty/postgresql.git/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 23:41:53 +0000 (19:41 -0400)
commited33ad39a2f353acc3d38591a749f324de3b6c23
tree4fca7e84ad3fb3cdfd167c5ec231ff5e3e08ff83
parentaa4982169d42660a848e4d25f52bdabcf3f12860
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