DEFERRABLE and DEFERRED - Mailing list pgsql-general

From Adrian 'Dagurashibanipal' von Bidder
Subject DEFERRABLE and DEFERRED
Date
Msg-id 1023278456.10746.110.camel@atlas
Whole thread Raw
Responses Re: DEFERRABLE and DEFERRED
Re: DEFERRABLE and DEFERRED
List 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@fortytwo.ch: key id 0x92082481
                                 avbidder@acter.ch:    key id 0x5E4B731F


Attachment

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: View vs. Statement Query Plan
Next
From: ktt
Date:
Subject: inheritance?