Re: Inherited tables and NOT NULL (pg 7.2.1)

From: "Magnus Naeslund(f)" <mag(at)fbab(dot)net>
To: "Luke Pascoe" <luke(dot)p(at)kmg(dot)co(dot)nz>, "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Inherited tables and NOT NULL (pg 7.2.1)
Date: 2003-01-24 02:13:32
Message-ID: 003701c2c34e$31d14960$f80c0a0a@mnd
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Luke Pascoe <luke(dot)p(at)kmg(dot)co(dot)nz> wrote:
> temp=> ALTER TABLE Parent ADD CONSTRAINT ddd_nn CHECK (ddd IS NOT
> NULL); ERROR: AlterTableAddConstraint: rejected due to CHECK
> constraint ddd_nn
>
> Why can't I add this check to the Parent table?
>

Try "CHECK (NOT (ddd IS NULL))" or "CHECK (NOT ddd IS NULL)" instead...
It might be some interpretation differances between your head and pgsql
:)
I know i have these types of constraints myself, i can dig up the
specifics if the above doesn't work.

Cheers
Magnus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Vecernik 2003-01-24 02:25:50 Re: standard schemas for addresses, others?
Previous Message Bruno Wolff III 2003-01-24 01:28:45 Re: Truncate width Postgres 7.3