Tom Lane cd902b331d Change the rules for inherited CHECK constraints to be essentially the same
as those for inherited columns; that is, it's no longer allowed for a child
table to not have a check constraint matching one that exists on a parent.
This satisfies the principle of least surprise (rows selected from the parent
will always appear to meet its check constraints) and eliminates some
longstanding bogosity in pg_dump, which formerly had to guess about whether
check constraints were really inherited or not.

The implementation involves adding conislocal and coninhcount columns to
pg_constraint (paralleling attislocal and attinhcount in pg_attribute)
and refactoring various ALTER TABLE actions to be more like those for
columns.

Alex Hunsaker, Nikhil Sontakke, Tom Lane
2008-05-09 23:32:05 +00:00
..
2008-01-05 13:17:00 +00:00
2007-12-28 11:13:55 +00:00
2008-01-30 10:49:55 +00:00
2007-02-20 23:14:19 +00:00
2008-01-30 10:37:36 +00:00
2007-11-28 15:42:31 +00:00
2008-01-17 14:34:45 +00:00
2008-05-07 18:48:40 +00:00
2007-11-28 15:42:31 +00:00