Re: Much Ado About COUNT(*) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Much Ado About COUNT(*)
Date
Msg-id 29927.1105554266@sss.pgh.pa.us
Whole thread Raw
In response to Much Ado About COUNT(*)  ("Jonah H. Harris" <jharris@tvi.edu>)
Responses Re: Much Ado About COUNT(*)
List pgsql-hackers
"Jonah H. Harris" <jharris@tvi.edu> writes:
> Tom, Bruce, and others involved in this recurring TODO discussion�
> First, let me start by saying that I understand this has been discussed 
> many times before; however, I�d like to see what the current state of 
> affairs is regarding the possibility of using a unique index scan to 
> speed up the COUNT aggregate.

It's not happening, because no one has come up with a workable proposal.
In particular, we're not willing to slow down every other operation in
order to make COUNT-*-with-no-WHERE-clause faster.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Much Ado About COUNT(*)
Next
From: Reinhard Max
Date:
Subject: segfault caused by heimdal (was: SUSE port)