Re: select count(*) performance - Mailing list pgsql-performance

From valgog
Subject Re: select count(*) performance
Date
Msg-id 1187005089.011403.303320@w3g2000hsg.googlegroups.com
Whole thread Raw
In response to select count(*) performance  (runic <runic@gmx.de>)
Responses Re: select count(*) performance
List pgsql-performance
On Aug 11, 5:54 pm, Detlef Rudolph <ru...@gmx.de> wrote:
> Hello Group,
>
> I've tried the VACUUM ANALYSE, that doesn't help
> much, but VACUUM FULL improves Performance down
> from about 40 secs to 8. I think in future I would
> use the reltuples value from pg_class for the table.
>
> Thanks a lot for your answers and a good Sunday,
> Det

just do not forget, that reltuples is count and updated in pg_class
only during the vacuuming or analyzing of a table... so the value is
only an APPROXIMATE....

-- Valentine


pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: select count(*) performance
Next
From: Vivek Khera
Date:
Subject: Re: Dell Hardware Recommendations