pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ivan Voras <ivoras@freebsd.org>
To: pgsql-performance@postgresql.org
Subject: Re: Slow "Select count(*) ..." query on table with    60 Mio. rows
Date: Thu, 14 Jan 2010 16:59:57 +0100
Message-ID: <hinf1q$qop$1@ger.gmane.org> (raw)
In-Reply-To: <4B4EE849020000250002E4A4@gw.wicourts.gov>
References: <4B4EE849020000250002E4A4@gw.wicourts.gov>

Kevin Grittner wrote:
> Matthew Wakeling <matthew@flymine.org> wrote:
>  
>> This is an FAQ.
>  
> I just added it to the wiki FAQ page:
>  
> http://wiki.postgresql.org/wiki/FAQ#Why_is_.22SELECT_count.28.2A.29_FROM_bigtable.3B.22_slow.3F

Maybe you could add a short note why an estimation like from the 
pg_class table is usually enough.




view thread (11+ messages)  latest in thread

Message-ID: <hinf1q$qop$1@ger.gmane.org>
Permalink:  ../hinf1q$qop$1@ger.gmane.org/
Also on:    postgresql.org/message-id/hinf1q$qop$1@ger.gmane.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: ivoras@freebsd.org
  Subject: Re: Slow "Select count(*) ..." query on table with    60 Mio. rows
  In-Reply-To: <hinf1q$qop$1@ger.gmane.org>

* 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