Re: count() in 9.2 - Mailing list pgsql-novice

From Simon Riggs
Subject Re: count() in 9.2
Date
Msg-id CA+U5nM+2WDiqmGBdbSnPoyt+OBUOYAFAyaB8=-BtV4Si7rijmA@mail.gmail.com
Whole thread Raw
In response to Re: count() in 9.2  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-novice
On 17 October 2012 18:48, Thomas Kellerer <spam_eater@gmx.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


pgsql-novice by date:

Previous
From: Ennio-Sr
Date:
Subject: WARNING: psql version 8.4, server version 9.1
Next
From: Steve Horn
Date:
Subject: Re: count() in 9.2