DEFERRABLE and DEFERRED

From: Adrian 'Dagurashibanipal' von Bidder <avbidder(at)fortytwo(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: DEFERRABLE and DEFERRED
Date: 2002-06-05 12:00:56
Message-ID: 1023278456.10746.110.camel@atlas
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

It seems not possible to defer anything other than FOREIGN KEY
constraints. Is this true, and are there reasons for this?

What we want to do fill a record step by step, leaving some NOT NULL
columns empty in the first place and later in the transaction UPDATEing
them to contain some values. Collecting the values first would be
impractical as the update statements are somewhat scattered over various
modules of the program.

something like
avbidder=> create table blah ( fasel text not null deferrable initially
deferred ) ;
ERROR: Misplaced DEFERRABLE clause

should imho be possible (of course it doesn't make sense if there's only
one column, but this doesn't matter - the error persists).

any hints? thanks.

-- vbi

--
secure email with gpg avbidder(at)fortytwo(dot)ch: key id 0x92082481
avbidder(at)acter(dot)ch: key id 0x5E4B731F

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ktt 2002-06-05 12:03:31 inheritance
Previous Message Martijn van Oosterhout 2002-06-05 11:24:36 Re: View vs. Statement Query Plan