]> granicus.if.org Git - postgresql/commit
Make ALTER TABLE revalidate uniqueness and exclusion constraints.
authorRobert Haas <rhaas@postgresql.org>
Fri, 21 Jan 2011 03:44:10 +0000 (22:44 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 21 Jan 2011 03:44:10 +0000 (22:44 -0500)
commit8ceb24568054232696dddc1166a8563bc78c900a
treea9921588da9066933ddf723e79345471909de5e5
parent14b9f69cb2077c65a09df78d167d45c35b1d7973
Make ALTER TABLE revalidate uniqueness and exclusion constraints.

Failure to do so can lead to constraint violations.  This was broken by
commit 1ddc2703a936d03953657f43345460b9242bbed1 on 2010-02-07, so
back-patch to 9.0.

Noah Misch.  Regression test by me.
src/backend/catalog/index.c
src/backend/commands/cluster.c
src/backend/commands/indexcmds.c
src/backend/commands/tablecmds.c
src/include/catalog/index.h
src/include/commands/cluster.h
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql