Commit c15de02f authored by Tom Lane's avatar Tom Lane

Fix inheritance description to note that not-null constraints are

inherited, per Taiki Yamaguchi.
parent 3cd318a8
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.68 2006/11/21 03:44:55 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.69 2006/11/28 01:09:01 tgl Exp $ -->
<chapter id="ddl"> <chapter id="ddl">
<title>Data Definition</title> <title>Data Definition</title>
...@@ -2055,10 +2055,9 @@ VALUES ('New York', NULL, NULL, 'NY'); ...@@ -2055,10 +2055,9 @@ VALUES ('New York', NULL, NULL, 'NY');
</para> </para>
<para> <para>
Check constraints can be defined on tables within an inheritance All check constraints and not-null constraints on a parent table are
hierarchy. All check constraints on a parent table are automatically inherited by its children. Other types of constraints
automatically inherited by all of its children. Other types of (unique, primary key, and foreign key constraints) are not inherited.
constraints are not inherited, however.
</para> </para>
<para> <para>
...@@ -2070,7 +2069,8 @@ VALUES ('New York', NULL, NULL, 'NY'); ...@@ -2070,7 +2069,8 @@ VALUES ('New York', NULL, NULL, 'NY');
so that there is only one such column in the child table. To be merged, so that there is only one such column in the child table. To be merged,
columns must have the same data types, else an error is raised. The columns must have the same data types, else an error is raised. The
merged column will have copies of all the check constraints coming from merged column will have copies of all the check constraints coming from
any one of the column definitions it came from. any one of the column definitions it came from, and will be marked not-null
if any of them are.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment