X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8A77D9DCCA6 for ; Tue, 29 Nov 2005 17:39:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28987-07-3 for ; Tue, 29 Nov 2005 17:39:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id CD9509DCCC0 for ; Tue, 29 Nov 2005 17:39:02 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id 2ACA11529A; Tue, 29 Nov 2005 15:39:04 -0600 (CST) Date: Tue, 29 Nov 2005 15:39:04 -0600 From: "Jim C. Nasby" To: Diego Cc: pgsql-admin@postgresql.org Subject: Re: Delete slow... Message-ID: <20051129213903.GJ78939@pervasive.com> References: <438CC473.9030409@unimedijui.com.br> <1133295605.28236.1.camel@ekim> <438CC8FB.6040001@unimedijui.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <438CC8FB.6040001@unimedijui.com.br> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.009 required=5 tests=[AWL=0.009] X-Spam-Score: 0.009 X-Spam-Level: X-Archive-Number: 200511/332 X-Sequence-Number: 19705 Can you provide the output of EXPLAIN ANALYZE for one of these deletes? On Tue, Nov 29, 2005 at 06:32:43PM -0300, Diego wrote: > Thanks by answers... > > For each record deleted, my postgresql server spended 4 seconds... > I know because i have logged each sql instruction, showing the time spended. > > My question is: is normal this time to a big table (400,000 records) > > Thanks! > Diego Ziquinatti > From Brazil (excuse me my english, rsrsrs) > > Mario Splivalo escreveu: > > >On Tue, 2005-11-29 at 18:13 -0300, Diego wrote: > > > > > >>Hi, > >>I have a table with 400,000 records, but in delete comand is very slow > >>(4 seconds for operation) > >>Why is very slow? There is some special configuration for this? > >> > >>Ps.: Version = Postgresql 7.4.6 > >> > >> > > > >That smells like a bad design. What do you delete from a 400.000 records > >table? > > > >I guess it's ok to be slow. > > > > Mike > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461