Re: Index containing records instead of pointers to the data?

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: Index containing records instead of pointers to the data?
Дата
Msg-id CAA-aLv5LnrkfUQV1djitxV2vrsiBK=fRinKPn5cxyUey1+4w1g@mail.gmail.com
обсуждение исходный текст
Ответ на Index containing records instead of pointers to the data?  (Stefan Keller <sfkeller@gmail.com>)
Список pgsql-performance
On 18 September 2011 21:18, Stefan Keller <sfkeller@gmail.com> wrote:
> Hi,
>
> Sorry if this is an odd question:
> I assume that Postgres indexes don't store records but only pointers
> to the data.
> This means, that there is always an additional access needed (real table I/O).
> Would an index containing data records make sense?

Yes, it's called a covering index, where the data required to produce
results for the query are entirely contained in the index.  That
should be hopefully coming in 9.2.

See http://wiki.postgresql.org/wiki/Index-only_scans

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Stefan Keller
Дата:
Сообщение: Index containing records instead of pointers to the data?
Следующее
От: Craig James
Дата:
Сообщение: Re: Index containing records instead of pointers to the data?