Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 79F849FA28E for ; Mon, 27 Nov 2006 21:10:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 50925-06 for ; Mon, 27 Nov 2006 21:10:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id C67219FA2CA for ; Mon, 27 Nov 2006 21:10:23 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kAS1AMvM026474; Mon, 27 Nov 2006 20:10:22 -0500 (EST) To: Taiki Yamaguchi cc: pgsql-docs@postgresql.org Subject: Re: A minor error in "5.8 Inheritance" In-reply-to: <456A68FC.70106@sra.co.jp> References: <456A68FC.70106@sra.co.jp> Comments: In-reply-to Taiki Yamaguchi message dated "Mon, 27 Nov 2006 13:26:36 +0900" Date: Mon, 27 Nov 2006 20:10:21 -0500 Message-ID: <26473.1164676221@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/82 X-Sequence-Number: 3916 Taiki Yamaguchi writes: > I found a small error in "5.8 Inheritance" where it says: > Check constraints can be defined on tables within an inheritance > hierarchy. All check constraints on a parent table are automatically > inherited by all of its children. Other types of constraints are not > inherited, however. > However, "not null" constraints also will be inherited. Unique > constraints, primary key and foreign keys are not. I think whoever wrote that had in mind that not-null constraints are a special case of check constraints. I agree it's clearer to spell it out though. Done, thanks for the report. regards, tom lane