From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: pgsql-admin@postgresql.org
Cc: bertheau@bab24.de
Subject: Re: small table occupies many relpages
Date: Fri, 07 Nov 2003 10:45:46 -0500
Message-ID: <29091.1068219946@sss.pgh.pa.us> (raw)
In-Reply-To: <1068200182.2191.15.camel@silizium.cenes-intern.de>
References: <1068200182.2191.15.camel@silizium.cenes-intern.de>
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?
> 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.
regards, tom lane
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: tgl@sss.pgh.pa.us, twanger@bluetwanger.de, bertheau@bab24.de
Subject: Re: small table occupies many relpages
In-Reply-To: <29091.1068219946@sss.pgh.pa.us>
References: <1068200182.2191.15.camel@silizium.cenes-intern.de> <29091.1068219946@sss.pgh.pa.us>
* 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