Re: index growth - Mailing list pgsql-general

From Tom Lane
Subject Re: index growth
Date
Msg-id 12563.1144607519@sss.pgh.pa.us
Whole thread Raw
In response to Re: index growth  (Alex Mayrhofer <axelm@nona.net>)
List pgsql-general
Alex Mayrhofer <axelm@nona.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

pgsql-general by date:

Previous
From: Gavin Hamill
Date:
Subject: Re: Load testing across 2 machines
Next
From: "paul rivers"
Date:
Subject: SSL for an AIX 5.x client - possible?