Re: CREATE TABLE docs fix

From: Neil Conway <neilc(at)samurai(dot)com>
To: Rod Taylor <rbt(at)zort(dot)ca>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: CREATE TABLE docs fix
Date: 2002-09-01 17:28:35
Message-ID: 878z2lwrek.fsf@mailbox.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Rod Taylor <rbt(at)zort(dot)ca> writes:

> On Sun, 2002-09-01 at 04:00, Neil Conway wrote:
> > This patch fixes a minor inaccuracy in the documentation: NOT NULL
> > is not synonymous with CHECK (xxx IS NOT NULL) -- for example,
> > consider ALTER TABLE ADD PRIMARY KEY, which checks for 'NOT NULL',
> > not a check constraint.
>
> Yeah, but they're still synonymous.

How so? Their behavior is clearly different (note the case above, as
well as any other situation in which the system attempts to determine
if a column allows a NULL value).

Since they are not interchangeable, they can't be synonyms.

Cheers,

Neil

--
Neil Conway <neilc(at)samurai(dot)com> || PGP Key ID: DB3C29FC

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2002-09-01 17:44:37 Re: CREATE TABLE docs fix
Previous Message Tom Lane 2002-09-01 16:32:24 Re: revised patch for PL/PgSQL table functions