Re: count() in 9.2

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: count() in 9.2
Date: 2012-10-17 18:38:04
Message-ID: CA+U5nM+2WDiqmGBdbSnPoyt+OBUOYAFAyaB8=-BtV4Si7rijmA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 17 October 2012 18:48, Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
> Steve Horn wrote on 17.10.2012 17:00:
>
>> One of the reasons that my team could not take advantage of
>> PostgreSQL was due to the poor performance of count(*) aggregate
>> function.
>
> I wonder what kind of application makes a slow count(*) on a table a show
> stopper.

That's a much better answer than my original reply.

There is only one answer, in any DBMS: Prepare special datastructures
that allow you to do that quickly, which is also an option in
Postgres.

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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Steve Horn 2012-10-17 18:41:58 Re: count() in 9.2
Previous Message Ennio-Sr 2012-10-17 17:50:30 WARNING: psql version 8.4, server version 9.1