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

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

pgsql-docs by date

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

pgsql-patches by date

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

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