Re: Slow count(*) - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Slow count(*)
Date
Msg-id 162867790801020747r23f6fa09ke11609fc090ca33c@mail.gmail.com
Whole thread Raw
In response to Slow count(*)  ("Abraham, Danny" <danny_abraham@bmc.com>)
List pgsql-hackers
On 02/01/2008, Abraham, Danny <danny_abraham@bmc.com> wrote:
> Hi,
>
> We are looking for a patch that will help us  count using the indexes.
>
> Our product is about 20 times slower on Postgres compared to MS SQL
> Server.
>
> Any ideas?

There isn't any similar patch and will not be.

Use materialized views or similar techniques.

Are you sure, so all your problems are only in SELECT COUNT(*)?

Check, please, all slow queries.

Regards
Pavel Stehule
>
> Danny Abraham
> BMC Software
> CTM&D Business Unit
> 972-52-4286-513
> danny_abraham@bmc.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>


pgsql-hackers by date:

Previous
From: "Abraham, Danny"
Date:
Subject: Slow count(*)
Next
From: "A. Kretschmer"
Date:
Subject: Re: Slow count(*)