]> granicus.if.org Git - postgresql/commit
Disallow merging ONLY constraints in children tables
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 16 Jan 2012 22:19:42 +0000 (19:19 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 16 Jan 2012 22:27:05 +0000 (19:27 -0300)
commit3b11247aadf857bbcbfc765191273973d9ca9dd7
tree7ab29e4e964f397c088c8850555992d3ccae4f6f
parent1b9f774090d58a950ef0535b51bc377ab62b795c
Disallow merging ONLY constraints in children tables

When creating a child table, or when attaching an existing table as
child of another, we must not allow inheritable constraints to be
merged with non-inheritable ones, because then grandchildren would not
properly get the constraint.  This would violate the grandparent's
expectations.

Bugs noted by Robert Haas.

Author: Nikhil Sontakke
doc/src/sgml/ref/alter_table.sgml
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c