Re: count * performance issue - Mailing list pgsql-performance

From Dave Cramer
Subject Re: count * performance issue
Date
Msg-id B94D3180-BB72-43EB-BA1E-90CF53705386@fastcrypt.com
Whole thread Raw
In response to Re: count * performance issue  ("sathiya psql" <sathiya.psql@gmail.com>)
List pgsql-performance
On 6-Mar-08, at 1:43 AM, sathiya psql wrote:

> is there any way to explicitly force the postgres to use index scan
>
>

If you want to count all the rows in the table there is only one way
to do it (without keeping track yourself with a trigger ); a seq scan.

An index will not help you.

The only thing that is going to help you is really fast disks, and
more memory, and you should consider moving to 8.3 for all the other
performance benefits.

Dave

pgsql-performance by date:

Previous
From: "sathiya psql"
Date:
Subject: index usage makes problem
Next
From: Dave Cramer
Date:
Subject: Re: count * performance issue