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 DC8B29DCBE6 for ; Tue, 29 Nov 2005 16:28:55 -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 23438-06 for ; Tue, 29 Nov 2005 16:28:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.unimedijui.com.br (mail.unimedijui.com.br [200.102.201.73]) by postgresql.org (Postfix) with ESMTP id 2F2309DCBDF for ; Tue, 29 Nov 2005 16:28:52 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.unimedijui.com.br (Postfix) with ESMTP id 4C72F8B822 for ; Tue, 29 Nov 2005 17:41:45 -0200 (BRST) Received: from mail.unimedijui.com.br ([127.0.0.1]) by localhost (safe [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04538-02 for ; Tue, 29 Nov 2005 17:41:41 -0200 (BRST) Received: from [192.168.2.138] (unknown [192.168.2.138]) by mail.unimedijui.com.br (Postfix) with ESMTP id 994EF156A82 for ; Tue, 29 Nov 2005 17:41:41 -0200 (BRST) Message-ID: <438CC8FB.6040001@unimedijui.com.br> Date: Tue, 29 Nov 2005 18:32:43 -0300 From: Diego User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Delete slow... References: <438CC473.9030409@unimedijui.com.br> <1133295605.28236.1.camel@ekim> In-Reply-To: <1133295605.28236.1.camel@ekim> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at unimedijui.com.br X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/329 X-Sequence-Number: 19702 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 > >