From: valgog <valgog@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: select count(*) performance
Date: Mon, 13 Aug 2007 11:38:09 -0000
Message-ID: <1187005089.011403.303320@w3g2000hsg.googlegroups.com> (raw)
In-Reply-To: <5i64cvF3mnmcsU1@mid.individual.net>
References: <1186578085.034463.116030@q75g2000hsh.googlegroups.com>
<5i64cvF3mnmcsU1@mid.individual.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: valgog@gmail.com
Subject: Re: select count(*) performance
In-Reply-To: <1187005089.011403.303320@w3g2000hsg.googlegroups.com>
References: <1186578085.034463.116030@q75g2000hsh.googlegroups.com> <5i64cvF3mnmcsU1@mid.individual.net> <1187005089.011403.303320@w3g2000hsg.googlegroups.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox