Deferred NOT NULL?

From: "Gregory Wood" <gregw(at)com-stock(dot)com>
To: "PostgreSQL-General" <pgsql-general(at)postgresql(dot)org>
Subject: Deferred NOT NULL?
Date: 2001-02-21 15:26:08
Message-ID: 00fa01c09c1a$9fd20d80$7889ffcc@comstock.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'd like to create a new table with a NOT NULL constraint that is deferred
until the transaction commit. Unfortunately with this definition:

CREATE TABLE foo (bar INTEGER NOT NULL INITIALLY DEFERRED);

I get this error:

ERROR: Misplaced INITIALLY DEFERRED clause

Is it possible to do this or do I have to define it as a CHECK constraint
and defer that?

Greg

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Antonis Antoniou 2001-02-21 15:27:29 AllocSetAlloc()
Previous Message Tom Lane 2001-02-21 15:17:25 Re: Multiple triggers/rules