Re: Block B-Tree concept

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Block B-Tree concept
Дата
Msg-id 45190E66.2090805@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Block B-Tree concept  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Block B-Tree concept  (Bruce Momjian <bruce@momjian.us>)
Re: Block B-Tree concept  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Heikki Linnakangas <heikki@enterprisedb.com> writes:
>   
>> I've been experimenting with the idea of a so-called Block B-Tree. The 
>> basic idea is that instead of storing an index tuple for each heap 
>> tuple, we store an index tuple for each heap block. This dramatically 
>> reduces the size of an index, leading to savings on I/O.
>>     
>
> VACUUM?
>   
There's a few options that I've thought of this far:

1. Whenever a tuple is found dead on page X, vacuum of the index will 
have to go to that page again to see if there's any matching tuples left.

2. Have a reference counter on index tuple that's increased on insert 
and decreased by vacuum.

3. Do nothing. Let index scans mark the index tuple as dead when it's 
convenient. There's no correctness problem with just leaving dead index 
tuples there, because you have to check the index quals on each heap 
tuple anyway when you scan.

3. probably isn't an option in itself, but we might want to do some kind 
of a mixture of 1 and 3.

I'm thinking that Block B-Tree is not a candidate for non-MVCC system 
catalogs, but I think that's OK.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Phantom Command ID
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Phantom Command ID