Re: Brain dump: btree collapsing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Brain dump: btree collapsing
Дата
Msg-id 9907.1045107209@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Brain dump: btree collapsing  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Brain dump: btree collapsing  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> It would be nice if VACUUM FULL would be able to compress the actual
> index file and return unused space to the operating system.  REINDEX
> does this, but I was thinking of something a little lighter that could
> be done automatically as part of VACUUM FULL.

But indexes tend to be very dependent on physical layout.  You can't
just shove stuff around without thinking about the consequences.
Tables (heaps) are *much* more forgiving about that.

My feeling is that what we need to fix now is index bloat during normal
operation.  If you want the indexes to actually *shrink*, that's a job
for REINDEX.  Perhaps someday we can improve on that --- but let's not
blur our focus on the immediate problem.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: horology and time failures on freebsd/alpha
Следующее
От: Greg Stark
Дата:
Сообщение: Re: log_duration