X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DE1D4D1C956 for ; Sat, 3 Jan 2004 06:50:35 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 31700-05 for ; Sat, 3 Jan 2004 02:49:47 -0400 (AST) Received: from relay01.kbs.net.au (relay01.kbs.net.au [203.220.32.149]) by svr1.postgresql.org (Postfix) with ESMTP id C94C9D1C919 for ; Sat, 3 Jan 2004 02:49:45 -0400 (AST) Received: from [203.221.247.106] (helo=familyhealth.com.au) by relay01.kbs.net.au with esmtp (Exim 3.36 #2) id 1AcHN3-0007wH-00; Fri, 02 Jan 2004 15:57:14 +1100 Message-ID: <3FF4FA25.7050802@familyhealth.com.au> Date: Fri, 02 Jan 2004 12:57:09 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vivek Khera Cc: pgsql-performance@postgresql.org Subject: Re: deferred foreign keys References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/15 X-Sequence-Number: 5190 > One more question: does the FK checker know to skip checking a > constraint if the column in question did not change during an update? > > That is, if I have a user table that references an owner_id in an > owners table as a foreign key, but I update fields other than owner_id > in the user table, will it still try to verify that owner_id is a > valid value even though it did not change? > > I'm using PG 7.4. As of 7.4, yes the check is skipped. Chris