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 8BA5A528B4 for ; Sun, 3 Jul 2005 21:50:46 -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 71240-09 for ; Mon, 4 Jul 2005 00:50:43 +0000 (GMT) Received: from smtp004.bizmail.sc5.yahoo.com (smtp004.bizmail.sc5.yahoo.com [66.163.175.81]) by svr1.postgresql.org (Postfix) with SMTP id A957B528AD for ; Sun, 3 Jul 2005 21:50:41 -0300 (ADT) Received: (qmail 41774 invoked from network); 4 Jul 2005 00:50:44 -0000 Received: from unknown (HELO ?192.168.3.41?) (david.mitchell@telogis.com@203.98.10.169 with plain) by smtp004.bizmail.sc5.yahoo.com with SMTP; 4 Jul 2005 00:50:44 -0000 Message-ID: <42C887DC.40308@telogis.com> Date: Mon, 04 Jul 2005 12:50:36 +1200 From: David Mitchell User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: weigelt@metux.de Cc: postgresql performance list Subject: Re: plain inserts and deletes very slow References: <20050703224537.GA9777@nibiru.borg.metux.de> <20050703225707.GB9777@nibiru.borg.metux.de> In-Reply-To: <20050703225707.GB9777@nibiru.borg.metux.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200507/22 X-Sequence-Number: 13263 Did you vacuum full? When you do lots of inserts and deletes, dead tuples get left behind. When you vacuum, postgres will reuse those dead tuples, but if you don't vacuum for a long time these tuples will build up lots. Even when you vacuum in this case, the dead tuples are still there, although they are marked for reuse. Vacuuming full actually removes the dead tuples. If you vacuum (normal) regularly, then the number of dead tuples will stay down, as they are regularly marked for reuse. David Enrico Weigelt wrote: > * Enrico Weigelt wrote: > > forgot to mention: > > + linux-2.6.9 > + postgres-7.4.6 > + intel celeron 2ghz > + intel ultra ata controller > + 768mb ram > > > cu -- David Mitchell Software Engineer Telogis NOTICE: This message (including any attachments) contains CONFIDENTIAL INFORMATION intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.