Re: Brain dump: btree collapsing

Поиск
Список
Период
Сортировка
От Curtis Faith
Тема Re: Brain dump: btree collapsing
Дата
Msg-id 001601c2d341$01a5e720$5e043ac8@curtislaptop
обсуждение исходный текст
Ответ на Brain dump: btree collapsing  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Brain dump: btree collapsing
Список pgsql-hackers
tom lane initially wrote:
> Restructuring the tree during page deletion
> -------------------------------------------
> 
> We will delete only completely-empty pages.  If we were to
> merge nearly-empty pages by moving data items from one page 
> to an adjacent one, this would imply changing the parent's 
> idea of the bounding key between them --- which is okay if we 
> are just deleting an internal key in the parent, but what if 
> the pages have different parent pages?

and a bit later wrote:
> My feeling is that what we need to fix now is index bloat during 
> normal operation.

How about doing deletion of partial pages with reorganization among
sibling pages only (where the parent pages are the same)? This avoids
the "messiness" of propogating the deletes to differing parent pages but
gets most of the value of reorganization.

ISTM, that a VACUUM that only reclaims empty pages will be helpful in
certain cases but won't help much at all in many other common "normal
operation" cases which would be helped by partial reorganization.

- Curtis




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

Предыдущее
От: Curt Sampson
Дата:
Сообщение: Re: location of the configuration files
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: location of the configuration files