Re: Deferred foreign key constraint downsides - Mailing list pgsql-general

From Jeff Davis
Subject Re: Deferred foreign key constraint downsides
Date
Msg-id 1302304917.25596.7.camel@jdavis-ux.asterdata.local
Whole thread Raw
In response to Deferred foreign key constraint downsides  (Jack Christensen <jackc@hylesanderson.edu>)
List pgsql-general
On Fri, 2011-04-08 at 14:08 -0500, Jack Christensen wrote:
> Are there any other downsides to just setting all my foreign keys to
> initially deferred?

It may consume memory resources until the transaction is complete.

Also, when it's possible to write the SQL in an order that always
maintains the integrity of the FK, then it's usually more readable and
understandable. So using immediate constraints may encourage a more
readable style.

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: momjian@postgreSQL.org
Date:
Subject: Critical fix for pg_upgrade/pg_migrator users
Next
From: Carlos Mennens
Date:
Subject: Rename or Re-Create Constraints?