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 88D06537AF for ; Fri, 25 Mar 2005 03:56:42 +0000 (GMT) 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 07962-02 for ; Fri, 25 Mar 2005 03:56:34 +0000 (GMT) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by svr1.postgresql.org (Postfix) with ESMTP id CA7965379F for ; Fri, 25 Mar 2005 03:56:30 +0000 (GMT) Received: from [192.168.1.4] (pcp04418836pcs.nrockv01.md.comcast.net [69.140.110.248]) by yertle.kcilink.com (Postfix) with ESMTP id B96FCB80A for ; Thu, 24 Mar 2005 22:56:34 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <4243879B.10200@familyhealth.com.au> References: <1111709457.9085.127.camel@k2.cet.nau.edu> <2630.1111711927@sss.pgh.pa.us> <1111715131.9085.174.camel@k2.cet.nau.edu> <3750.1111715318@sss.pgh.pa.us> <4243879B.10200@familyhealth.com.au> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Vivek Khera Subject: Re: Delete query takes exorbitant amount of time Date: Thu, 24 Mar 2005 22:56:34 -0500 To: pgsql-performance@postgresql.org X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/535 X-Sequence-Number: 11240 On Mar 24, 2005, at 10:38 PM, Christopher Kings-Lynne wrote: >> In that case there's a datatype mismatch between the referencing and >> referenced columns, which prevents the index from being used for the >> FK check. > > Is creating such a foreign key a WARNING yet? > I recall getting such a warning when importing my schema from a 7.4 to 8.0 server. I had one table with char and the other with varchar.