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 7E28AD1B48D for ; Tue, 25 Nov 2003 21:58:28 +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 42250-10 for ; Tue, 25 Nov 2003 17:57:58 -0400 (AST) Received: from smtp2.mail.be.easynet.net (smtp2.mail.be.easynet.net [212.100.160.76]) by svr1.postgresql.org (Postfix) with ESMTP id 84AFAD1B45F for ; Tue, 25 Nov 2003 17:57:57 -0400 (AST) Received: from 213-193-177-64.adsl.easynet.be ([213.193.177.64]) by smtp2.mail.be.easynet.net with esmtp (Exim 4.22) id 1AOlBs-0004mZ-9Y for pgsql-performance@postgresql.org; Tue, 25 Nov 2003 22:57:48 +0100 From: Stefan Champailler Reply-To: schampailler@easynet.be To: pgsql-performance@postgresql.org Subject: Impossibly slow DELETEs Date: Tue, 25 Nov 2003 22:56:56 +0100 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311252256.56433.schampailler@easynet.be> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/254 X-Sequence-Number: 4814 Dear You all, (please tell me if this has already been discussed, I was unable to find any convincing information) I'm developing a small application, tied to a PG 7.4 beta 5 (i didn't upgrade). The DB i use is roughly 20 tales each of them containing at most 30 records (I'm still in development). I can provide a whole dump if necessary. I access the DB throug IODBC (Suse Linux 8.1), through PHP. The machine everything runs on is 512M of Ram, 2.5GHz speed. So I assume it should be blazingly fast. So here's my trouble : some DELETE statement take up to 1 minute to complete (but not always, sometimes it's fast, sometimes it's that slow). Here's a typical one : DELETE FROM response_bool WHERE response_id = '125' The response_bool table has no foreing key and no index on response_id column. No foreign key reference the response_bool table. There are 6 rows in the table (given that size, I assumed that an index was not necessary). So 1 minute to complete look like I did something REALLY bad. It is my feeling that doing the same query with psql works without problem, but I can't be sure. The rest of my queries (inserts, updates) just work fine and pretty fast. Can someone help me or point me to a place where I can find help ? I didn't do any in deep debugging though. thx, stF