Re: So, is COUNT(*) fast now?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: So, is COUNT(*) fast now?
Дата
Msg-id 15678.1319227553@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: So, is COUNT(*) fast now?  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: So, is COUNT(*) fast now?
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Hmm, I guess there is a bit of a hotspot in StoreIndexTuple, which is
> probably being folded into IndexOnlyNext in the per-function timings:

>     ExecClearTuple(slot);
>     for (i = 0; i < nindexatts; i++)
>         values[i] = index_getattr(itup, i + 1, itupdesc, &isnull[i]);
>     ExecStoreVirtualTuple(slot);

I had wondered whether it'd be worth optimizing that along the lines of
slot_getallattrs().  But most indexes probably have only one column,
or anyway not enough to make for a useful savings.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: So, is COUNT(*) fast now?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: So, is COUNT(*) fast now?