count(*) optimization - Mailing list pgsql-sql

From Nikola Ivacic
Subject count(*) optimization
Date
Msg-id 024d01c2b72f$a6a7dcc0$1100a8c0@rspi
Whole thread Raw
Responses Re: count(*) optimization
List pgsql-sql
Hi
 
I have trouble executing count(*) statement.
On a large dataset it takes quite a while to return result.
Is there any other way to get number of tupples in relation
or is the only way to optimize count() function to index it? 
 
thanks
 
Nikola

pgsql-sql by date:

Previous
From: "Rajesh Kumar Mallah."
Date:
Subject: Re: Search and Replace
Next
From: Bruno Wolff III
Date:
Subject: Re: count(*) optimization