X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2765BD1B211 for ; Wed, 9 Jun 2004 10:46:49 -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 03506-05 for ; Wed, 9 Jun 2004 13:46:45 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id AA9FED1B16B for ; Wed, 9 Jun 2004 10:46:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i59DkfE5020392; Wed, 9 Jun 2004 09:46:41 -0400 (EDT) To: "Scott Marlowe" Cc: "Mauri Sahlberg" , pgsql-admin@postgresql.org Subject: Re: [Fwd: Re: RHDB just sits and does nothing?] In-reply-to: <1086786111.23855.4.camel@localhost.localdomain> References: <63280.195.197.242.66.1086768991.squirrel@www.claymountain.com> <1086786111.23855.4.camel@localhost.localdomain> Comments: In-reply-to "Scott Marlowe" message dated "Wed, 09 Jun 2004 07:01:51 -0600" Date: Wed, 09 Jun 2004 09:46:41 -0400 Message-ID: <20391.1086788801@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/107 X-Sequence-Number: 13767 "Scott Marlowe" writes: > On Wed, 2004-06-09 at 02:16, Mauri Sahlberg wrote: >> It just took about three quarters of a hour to delete 6500 rows! > Do you have any foreign key references that are of mismatched types > involved? Specifically, what other tables reference this one? Are their referencing columns of identical types, and *do they have indexes*? I'm betting on lack of index myself; that's the only FK mistake that hurts you only at primary-key-delete time. regards, tom lane