Re: Approximate count(*)

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

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.

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David Fetter 2005-03-24 17:58:27 Re: [PATCHES] Approximate count(*)
Previous Message David Fetter 2005-03-24 17:01:37 Approximate count(*)

Browse pgsql-patches by date

  From Date Subject
Next Message David Fetter 2005-03-24 17:58:27 Re: [PATCHES] Approximate count(*)
Previous Message Tom Lane 2005-03-24 17:24:43 Re: PL/Python patch for Universal Newline Support