Re: Win2K Questions

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: Win2K Questions
Дата
Msg-id 3DCFDA27.5AF840D3@nsd.ca
обсуждение исходный текст
Ответ на Re: Win2K Questions  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: Win2K Questions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
This explains it all.

What would be involved in adding version and visibility to the index?

It would allow for scanning the index instead of the whole table for
many of the count() request.

JLL

Neil Conway wrote:
>
> Jean-Luc Lachance <jllachan@nsd.ca> writes:
> > unless id is indexed there is nothing that can be done with
> > select count(*) from table where id >10000;
> > Otherwise, the index should be scanned, not the table.
>
> Indexes don't store heap tuple visibility information; you'd need to
> scan the heap as well in order to determine which tuples your
> transaction can see.
>
> Cheers,
>
> Neil
>
> --
> Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Stale Process
Следующее
От: Tom Lane
Дата:
Сообщение: Re: question about efficiency