Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-docspgsql-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

pgsql-docs by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group