Skip site navigation (1) Skip section navigation (2)

Re: [SQL] special integrity constraints

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Erik Thiele <erik(at)thiele-hydraulik(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-docs(at)postgresql(dot)org
Subject: Re: [SQL] special integrity constraints
Date: 2004-03-23 00:34:56
Message-ID: 20040323003456.GA7733@wolff.to (view raw or flat)
Thread:
Lists: pgsql-docspgsql-sql
On Mon, Mar 22, 2004 at 17:21:21 +0100,
  Erik Thiele <erik(at)thiele-hydraulik(dot)de> wrote:
> 
> there is no such thing as a deferred check constraint:
> 
> DEFERRABLE
> NOT DEFERRABLE
> 
> This controls whether the constraint can be deferred. A constraint that
> is not deferrable will be checked immediately after every command.
> Checking of constraints that are deferrable may be postponed until the
> end of the transaction (using the SET CONSTRAINTS command). NOT
> DEFERRABLE is the default. 
> 
> !!! Only foreign key constraints currently accept
> this clause. All other constraint types are not deferrable. !!!

Sorry, I checked the syntax for CREATE TABLE in the documentation and
it shows DEFERRABLE as allowed on any column constraint. However, that
is apparently not correct.

In response to

pgsql-docs by date

Next:From: Achilleus MantziosDate: 2004-03-23 07:26:29
Subject: Re: special integrity constraints
Previous:From: Stephan SzaboDate: 2004-03-22 16:34:54
Subject: Re: special integrity constraints

pgsql-sql by date

Next:From: Gregory S. WilliamsonDate: 2004-03-23 02:16:19
Subject: function definition documentation
Previous:From: Stephan SzaboDate: 2004-03-22 16:34:54
Subject: Re: special integrity constraints

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group