Re: Why does a simple query not use an obvious index?

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Why does a simple query not use an obvious index?
Дата
Msg-id 1093817899.42199.63.camel@jester
обсуждение исходный текст
Ответ на Re: Why does a simple query not use an obvious index?  (Greg Stark <gsstark@mit.edu>)
Список pgsql-performance
> People expect count(*) _without a where clause_ to be cached in a single
> global variable. Postgres can't do this, but the reason has everything to do

Someone should write an approx_count('table') function that reads
reltuples from pg_class and tell them to use it in combination with
autovac.

I've yet to see someone use count(*) across a table and not round the
result themselves (approx 9 million clients).



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Why does a simple query not use an obvious index?
Следующее
От: Russell Smith
Дата:
Сообщение: Re: Query performance problem in 8.0.0beta1