Re: Inherited tables and NOT NULL (pg 7.2.1) - Mailing list pgsql-general

From Magnus Naeslund(f)
Subject Re: Inherited tables and NOT NULL (pg 7.2.1)
Date
Msg-id 003701c2c34e$31d14960$f80c0a0a@mnd
Whole thread Raw
In response to Inherited tables and NOT NULL (pg 7.2.1)  ("Luke Pascoe" <luke.p@kmg.co.nz>)
List pgsql-general
Luke Pascoe <luke.p@kmg.co.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


pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Truncate width Postgres 7.3
Next
From: Oliver Vecernik
Date:
Subject: Re: standard schemas for addresses, others?