From: Markus Bertheau <twanger@bluetwanger.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Cc: bertheau@bab24.de
Subject: Re: small table occupies many relpages
Date: Fri, 07 Nov 2003 21:45:06 +0100
Message-ID: <1068237906.5574.10.camel@severn2> (raw)
In-Reply-To: <29091.1068219946@sss.pgh.pa.us>
References: <1068200182.2191.15.camel@silizium.cenes-intern.de>
<29091.1068219946@sss.pgh.pa.us>
В Птн, 07.11.2003, в 16:45, Tom Lane пишет:
> Markus Bertheau <twanger@bluetwanger.de> writes:
> > It has a unique index on virtual_domain. Every day we do <10000 queries
> > of the form
> > insert into virtual_domains values (default, 'www.something.de')
>
> So you're expecting these inserts to fail because of unique index
> violations?
Yes.
>
> > The big table size slows down sequential scans significantly. What can
> > we do to prevent growth of the table?
>
> Vacuum more often. You have to get rid of the tuples that failed the
> index check. They are already in the table when the index spits up.
Does pg_autovacuum do something wrong, that it not catches this case?
--
Markus Bertheau <twanger@bluetwanger.de>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: twanger@bluetwanger.de, tgl@sss.pgh.pa.us, bertheau@bab24.de
Subject: Re: small table occupies many relpages
In-Reply-To: <1068237906.5574.10.camel@severn2>
References: <1068200182.2191.15.camel@silizium.cenes-intern.de> <29091.1068219946@sss.pgh.pa.us> <1068237906.5574.10.camel@severn2>
* 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