pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Mitchell <david.mitchell@telogis.com>
To: weigelt@metux.de
Cc: postgresql performance list <pgsql-performance@postgresql.org>
Subject: Re: plain inserts and deletes very slow
Date: Mon, 04 Jul 2005 12:50:36 +1200
Message-ID: <42C887DC.40308@telogis.com> (raw)
In-Reply-To: <20050703225707.GB9777@nibiru.borg.metux.de>
References: <20050703224537.GA9777@nibiru.borg.metux.de>
	<20050703225707.GB9777@nibiru.borg.metux.de>

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 <weigelt@metux.de> 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.



view thread (15+ messages)  latest in thread

Message-ID: <42C887DC.40308@telogis.com>
Permalink:  ../42C887DC.40308@telogis.com/
Also on:    postgresql.org/message-id/42C887DC.40308@telogis.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: david.mitchell@telogis.com, weigelt@metux.de
  Subject: Re: plain inserts and deletes very slow
  In-Reply-To: <42C887DC.40308@telogis.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox