Re: deferrable foreign keys

From: Morus Walter <morus(dot)walter(dot)ml(at)googlemail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: deferrable foreign keys
Date: 2009-12-03 07:55:55
Message-ID: 20091203085555.6d32151b@tucholsky.experteer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hallo Tom,

> Morus Walter <morus(dot)walter(dot)ml(at)googlemail(dot)com> writes:
> > are there downsides of making foreign keys deferrable (but initially
> > immediate) for updates, when the transaction does not set the
> > constraint behaviour to deferred?
>
> > I'd expect that to have the same behaviour as non deferrable foreign
> > keys.
> > What I don't understand is, why is non deferrable the default, then.
>
> Because the SQL standard says so.

Ok. Understood.

> I don't believe there is any actual
> penalty for deferrable within the PG implementation, but perhaps there
> is in other systems' implementations.
>

Thanks a lot for your help.

Morus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2009-12-03 08:29:55 Re: Catastrophic changes to PostgreSQL 8.4
Previous Message Kern Sibbald 2009-12-03 07:33:38 Re: Catastrophic changes to PostgreSQL 8.4