Re: count() in 9.2

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: count() in 9.2
Дата
Msg-id CA+U5nMJ6xOZ867CVNYs=1ruFrwJcAaZ3M8Q6N7p5jAioaDjyew@mail.gmail.com
обсуждение исходный текст
Ответ на Re: count() in 9.2  (Steve Horn <steve@stevehorn.cc>)
Список pgsql-novice
On 17 October 2012 17:22, Steve Horn <steve@stevehorn.cc> wrote:
> Yeah I should have mentioned...adding a where clause is always my use case
> when using count().
>
> So to clarify my question: does anyone have any experience with count()
> (with a WHERE clause) in Postgres 9.2?

If the WHERE clause looks only at columns in one index it might be
faster, otherwise same.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Steve Horn
Дата:
Сообщение: Re: count() in 9.2
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: count() in 9.2