Re: index growth

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Mayrhofer <axelm(at)nona(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: index growth
Date: 2006-04-09 18:31:59
Message-ID: 12563.1144607519@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Mayrhofer <axelm(at)nona(dot)net> writes:
> a recent REINDEX reduced that index from about 30000 pages to 18000.

That's not bloat, that's normal overhead. The traditional rule of thumb
for a btree is that at steady state, pages will be about 2/3rds full.
REINDEX packs pages to 90% IIRC, but you can't expect that that density
will be maintained in the face of heavy update activity. It looks to me
like your index is not so far off the rule-of-thumb load factor, and you
should just not worry, be happy. If you were finding that your indexes
grow to ten times the minimum size, *that* would be worth worrying
about.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message paul rivers 2006-04-09 18:50:35 SSL for an AIX 5.x client - possible?
Previous Message Gavin Hamill 2006-04-09 18:27:19 Re: Load testing across 2 machines