Re: DEFERRABLE NOT NULL constraint

From: Andreas Joseph Krogh <andreak(at)officenet(dot)no>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: DEFERRABLE NOT NULL constraint
Date: 2013-02-05 10:15:55
Message-ID: OrigoEmail.170.29cc887f9e71edb5.13ca9d9ffaa@prod2.officenet.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<div>På tirsdag 05. februar 2013 kl. 11:04:27, skrev Thomas Kellerer &lt;<a href="mailto:spam_eater(at)gmx(dot)net" target="_blank">spam_eater(at)gmx(dot)net</a>&gt;:</div>

<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="display:inline; font-family: monospace; font-size: 12px;">Andreas Joseph Krogh, 05.02.2013 10:57:<br>
&gt; The value of having NOT NULL deferrable is, well, to not check for<br>
&gt; NULL until the tx commits. When working with ORMs this often is the<br>
&gt; case, especially with circular FKs.<br>
<br>
With circular FKs it's enough to define the FK constraint as deferred.</div>
</blockquote>

<div> </div>

<div>I meant; circular FKs which are also NOT NULL</div>

<div> </div>

<div class="origo-email-signature">--<br>
Andreas Joseph Krogh &lt;andreak(at)officenet(dot)no&gt;      mob: +47 909 56 963<br>
Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no<br>
Public key: http://home.officenet.no/~andreak/public_key.asc</div>

<div> </div>

Attachment Content-Type Size
unknown_filename text/html 1.0 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thierry Hauchard 2013-02-05 10:17:55 COPY FROM on Windows and accentuated characters in the file path
Previous Message Виктор Егоров 2013-02-05 10:11:10 Re: DEFERRABLE NOT NULL constraint