Re: Slow counting still true?

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Slow counting still true?
Дата
Msg-id CAMkU=1zEHjhkqZZBBf=p982sd_z437Y50gkMMcp5nogj+guU_g@mail.gmail.com
обсуждение исходный текст
Ответ на Slow counting still true?  (Thomas Guettler <hv@tbz-pariv.de>)
Список pgsql-general
On Mon, Sep 17, 2012 at 1:07 AM, Thomas Guettler <hv@tbz-pariv.de> wrote:
> Release 9.2 should increase count(*) performance. Is this wiki page still
> valid?

Even with index only scans, it still has to walk through every tuple,
even if they are only index tuples not table tuples.  So nothing has
fundamentally changed.  So it is still true that "PostgreSQL must walk
through all rows, in some sense".

I guess this sentence is partly out of date: "PostgreSQL will still
need to read the resulting rows to verify that they exist; other
database systems may only need to reference the index in this
situation."  Maybe just deleting it would be appropriate.

Cheers,

Jeff


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

Предыдущее
От: Edson Richter
Дата:
Сообщение: Re: Get time for each operation in "Explain..."
Следующее
От: Alex Lai
Дата:
Сообщение: Re: Planner forces seq scan when select without quoting its values