Fix ATExecSetNotNull to handle inheritance trees correctly.
authorBernd Helmle <mailings@oopsware.de>
Sun, 22 May 2011 18:43:10 +0000 (20:43 +0200)
committerBernd Helmle <mailings@oopsware.de>
Sun, 22 May 2011 18:43:10 +0000 (20:43 +0200)
commit42bc6f45df9ac4767100777e0806a86459300d71
treeac561e859fa690e714b645433f1e4faa037f9756
parent2c0e34955a9a6b427ea07b984a0e904f907fea57
Fix ATExecSetNotNull to handle inheritance trees correctly.

The original approach to handle inheritance for NOT NULL constraints
accidently adjusted the inheritance counter of such a constraint, even
when the constraint already was inherited by another child table
part of the same inheritance branch (e.g. C -> B -> A, where C
inherited first from B, and then B from A).
src/backend/commands/tablecmds.c
src/test/regress/expected/inherit.out
src/test/regress/sql/inherit.sql