Re: index growth

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index growth
Дата
Msg-id 12563.1144607519@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: index growth  (Alex Mayrhofer <axelm@nona.net>)
Список 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 по дате отправления:

Предыдущее
От: Gavin Hamill
Дата:
Сообщение: Re: Load testing across 2 machines
Следующее
От: "paul rivers"
Дата:
Сообщение: SSL for an AIX 5.x client - possible?