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 73686D1B440 for ; Wed, 31 Dec 2003 17:18:43 +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 11455-03 for ; Wed, 31 Dec 2003 13:17:54 -0400 (AST) Received: from lorax.kcilink.com (lorax.kciLink.com [206.112.95.1]) by svr1.postgresql.org (Postfix) with ESMTP id 5EF6CD1C981 for ; Wed, 31 Dec 2003 13:17:53 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by lorax.kcilink.com (Postfix) with ESMTP id 9F0FB3E65 for ; Wed, 31 Dec 2003 12:17:51 -0500 (EST) Received: from lorax.kcilink.com ([127.0.0.1]) by localhost (lorax.kcilink.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 84374-05-4 for ; Wed, 31 Dec 2003 12:17:51 -0500 (EST) Received: from lorax.kcilink.com (localhost [127.0.0.1]) by lorax.kcilink.com (Postfix) with ESMTP id E37CA3E4D for ; Wed, 31 Dec 2003 12:17:50 -0500 (EST) Received: (from news@localhost) by lorax.kcilink.com (8.12.9p2/8.12.9/Submit) id hBVHHogZ033782 for pgsql-performance@postgresql.org; Wed, 31 Dec 2003 12:17:50 -0500 (EST) (envelope-from news) To: pgsql-performance@postgresql.org Path: not-for-mail From: Vivek Khera Newsgroups: ml.postgres.performance Subject: Re: deferred foreign keys Date: Wed, 31 Dec 2003 12:17:50 -0500 Organization: Khera Communications, Inc., Rockville, MD Lines: 16 Message-ID: References: NNTP-Posting-Host: yertle.kcilink.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: lorax.kcilink.com 1072891070 90029 65.205.34.180 (31 Dec 2003 17:17:50 GMT) X-Complaints-To: daemon@kciLink.com NNTP-Posting-Date: Wed, 31 Dec 2003 17:17:50 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, berkeley-unix) Cancel-Lock: sha1:0SjR8PMhIyH041mh3DSKaJ7YFMA= X-Virus-Scanned: by amavisd-new at kciLink.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/315 X-Sequence-Number: 5175 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. Thanks. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-301-869-4449 x806 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/