git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8e617e2) | patch
connoinherit may be true only for CHECK constraints
2012年7月20日 16:33:34 +0000 (12:33 -0400)
2012年7月20日 18:08:07 +0000 (14:08 -0400)
commit f5bcd398addcbeb785f0513cf28cba5d1ecd2c8a
connoinherit may be true only for CHECK constraints

The code was setting it true for other constraints, which is
bogus. Doing so caused bogus catalog entries for such constraints, and
in particular caused an error to be raised when trying to drop a
constraint of types other than CHECK from a table that has children,
such as reported in bug #6712.

In 9.2, additionally ignore connoinherit=true for other constraint
types, to avoid having to force initdb; existing databases might already
contain bogus catalog entries.

Includes a catversion bump (in HEAD only).

Bug report from Miroslav Šulc
Analysis from Amit Kapila and Noah Misch; Amit also contributed the patch.
src/backend/catalog/index.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/commands/trigger.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/test/regress/expected/inherit.out diff | blob | blame | history
src/test/regress/sql/inherit.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /