Re: new index type with clustering in mind.

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: new index type with clustering in mind.
Дата
Msg-id 20141210194213.GA1768@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: new index type with clustering in mind.  ("Jack Douglas" <jack@douglastechnology.co.uk>)
Ответы Re: new index type with clustering in mind.
Список pgsql-general
Jack Douglas wrote:
> > in 9.4, GIN indexes are pretty close to this already
>
> Do I understand correctly that BRIN indexes will be even closer to this?
>

Yeah, in a way.  You could say they are closer from the opposite end.
There is one index tuple in a BRIN index for each page range (contiguous
set of pages); each index tuple contains a "summary" of what in that
page range.  There are no exact entries.  If the values are randomly
scattered, the index is useless; all page ranges will have to be scanned
for possibly matching tuples.  If the values are perfectly clustered,
the index is optimal because you scan the minimal set of pages.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: invalid memory alloc request size
Следующее
От: Gabriel Sánchez Martínez
Дата:
Сообщение: Re: invalid memory alloc request size