Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6GIpka75202 for ; Mon, 16 Jul 2001 14:51:46 -0400 (EDT) (envelope-from acroyear_07030@yahoo.com) Message-ID: <20010716185143.15377.qmail@web14608.mail.yahoo.com> Received: from [64.171.181.67] by web14608.mail.yahoo.com via HTTP; Mon, 16 Jul 2001 11:51:42 PDT Date: Mon, 16 Jul 2001 11:51:42 -0700 (PDT) From: Stephan Szabo Subject: Re: REFRENTIAL INTEGRITY CHECKING To: Sudheer Palaparambil , "pgsql-admin@postgresql.org" In-Reply-To: <20010716171155.26546.qmail@mailFA5.rediffmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200107/69 X-Sequence-Number: 1822 --- Sudheer Palaparambil wrote: > Hi, > > How do we avoid referential integrity (FOREIGN > KEY) checking till commit. My pgsql server > is checking it as soon as I am issueing an INSERT > command. Pls help. When you define the constraint, set it as INITIALLY DEFERRED (or if you only sometimes want it to defer, set it as DEFERRABLE and use SET CONSTRAINTS to change the mode) However, there are some problems with the deferred ri right now if you modify the same key more than once in a transaction -- I'm hoping to get a chance to fix that for 7.2. For now, you have to be careful. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/