Re: small table occupies many relpages

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org, bertheau(at)bab24(dot)de
Subject: Re: small table occupies many relpages
Date: 2003-11-07 15:45:46
Message-ID: 29091.1068219946@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Markus Bertheau <twanger(at)bluetwanger(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message pginfo 2003-11-07 15:47:55 Re: vacuum full problem
Previous Message Stephan Szabo 2003-11-07 15:32:12 Re: I feel a bit dumb, but getting a bit clueless