Re: Brain dump: btree collapsing

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Brain dump: btree collapsing
Дата
Msg-id 200302130358.h1D3wNj24688@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Brain dump: btree collapsing  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> 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.

My point is only that while we need VACUUM and VACUUM FULL to match all
heap needs, we need a VACUUM FULL capability for indexes too.  REINDEX
may be that capability, but it would be nice if we could compress out
some index space during VACUUM FULL.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: log_duration
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: psql and readline