Re: select count(*) from a large table is very slow - Mailing list pgsql-admin

From Jonah H. Harris
Subject Re: select count(*) from a large table is very slow
Date
Msg-id 36e682920705180622t7e60d5e0rf4143d4af336967f@mail.gmail.com
Whole thread Raw
In response to select count(*) from a large table is very slow  (Jessica Richard <rjessil@yahoo.com>)
List pgsql-admin
On 5/18/07, Jessica Richard <rjessil@yahoo.com> wrote:
> I have a ~30 milliow row table, select count(*) from this table is very very
> very slow...

Yes, see the topic "Much Ado about COUNT(*)"

> How dow I get it run faster?

Unfortunately, aside from reducing the size of the table, you can't.

--
Jonah H. Harris, Software Architect | phone: 732.331.1324
EnterpriseDB Corporation            | fax: 732.331.1301
33 Wood Ave S, 3rd Floor            | jharris@enterprisedb.com
Iselin, New Jersey 08830            | http://www.enterprisedb.com/

pgsql-admin by date:

Previous
From: Jessica Richard
Date:
Subject: select from dblink very slow
Next
From: Jessica Richard
Date:
Subject: cross database references...