Re: [PATCHES] Approximate count(*)

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Docs <pgsql-docs(at)postgresql(dot)org>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PATCHES] Approximate count(*)
Date: 2005-03-24 17:58:27
Message-ID: 20050324175827.GC15848@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-patches

On Thu, Mar 24, 2005 at 12:34:51PM -0500, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > Please find enclosed a patch that shows how to get a quick
> > approximation of count(*) on a table.
>
> I'm not sure we should be encouraging people to look at reltuples...
> for one thing, it's deliberately a moving average under 8.0.

Should there be more caveats?

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Greg Sabino Mullane 2005-03-25 02:34:14 Re: [PATCHES] Approximate count(*)
Previous Message Tom Lane 2005-03-24 17:34:51 Re: Approximate count(*)

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-03-24 18:32:49 Re: contrib dbf2sql.pl
Previous Message Tom Lane 2005-03-24 17:34:51 Re: Approximate count(*)