X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 41EBC53B16 for ; Thu, 14 Apr 2005 12:28:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11287-01 for ; Thu, 14 Apr 2005 15:28:34 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3224253859 for ; Thu, 14 Apr 2005 12:28:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3EFSNUL001007; Thu, 14 Apr 2005 11:28:23 -0400 (EDT) To: Christopher Kings-Lynne Cc: Richard van den Berg , pgsql-performance@postgresql.org Subject: Re: Foreign key slows down copy/insert In-reply-to: <425E88B7.6000203@familyhealth.com.au> References: <425E6045.4060201@trust-factory.com> <425E792B.4020500@familyhealth.com.au> <425E7D96.6020201@trust-factory.com> <425E7F94.4080602@familyhealth.com.au> <425E8766.8070901@trust-factory.com> <425E88B7.6000203@familyhealth.com.au> Comments: In-reply-to Christopher Kings-Lynne message dated "Thu, 14 Apr 2005 23:13:59 +0800" Date: Thu, 14 Apr 2005 11:28:23 -0400 Message-ID: <1006.1113492503@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/291 X-Sequence-Number: 11688 Christopher Kings-Lynne writes: > No it certainly won't warn you. You have _avoided_ the check entirely. > That's why I was warning you... > If you wanted to be really careful, you could: Probably the better bet is to drop and re-add the FK constraint. regards, tom lane