Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EA731476738 for ; Tue, 3 Sep 2002 14:59:51 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id C35F8476704 for ; Tue, 3 Sep 2002 14:59:46 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g83IxYc11327; Tue, 3 Sep 2002 14:59:34 -0400 (EDT) From: Bruce Momjian Message-Id: <200209031859.g83IxYc11327@candle.pha.pa.us> Subject: Re: VERY SMALL DOC BUG: http://www.postgresql.org/idocs/index.php?sql-createtable.html In-Reply-To: <200209031512.g83FCx617971@janning.planwerk6.local> To: Janning Vygen Date: Tue, 3 Sep 2002 14:59:34 -0400 (EDT) Cc: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/17 X-Sequence-Number: 1469 Looks like this is already fixed in 7.3, due out in a few months: A not-null constraint is always written as a column constraint. A not-null constraint is equivalent to creating a check constraint CHECK (column_name IS NOT NULL), but in PostgreSQL --------------------------------------------------------------------------- Janning Vygen wrote: > Hi, > > In document > http://www.postgresql.org/idocs/index.php?sql-createtable.html > > it says (Parameters, third section): > > NOT NULL > The column is not allowed to contain NULL values. This is > equivalent to the column constraint CHECK (column NOT NULL). > > At the end it must say: > > CHECK (column IS NOT NULL). > ^^ > > thanks for maintaining/developing postgresql!! Great database! > > kind regards, > janning > > -- > PLANWERK 6 /websolutions > Herzogstra?e 86 > 40215 D?sseldorf > > fon 0211-6015919 > fax 0211-6015917 > http://www.planwerk6.de > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073