Re: *sigh*

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: *sigh*
Дата
Msg-id m2ekuflm2t.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Re: *sigh*  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Select count(*) could be evaluated against any available index
> sub-tables, since all that is required is to count the rows. That would
> be significantly faster than a full file scan and accurate too.

PostgreSQL stores MVCC information in heap tuples only, so index-only
plans such as you're suggesting can't be used (i.e. we need to check
the heap tuple to see if a particular index entry is visible to the
current transaction).

-Neil



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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Need a good .
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: PL/Java issues