X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 30460534AF; Thu, 24 Mar 2005 17:34:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05019-04; Thu, 24 Mar 2005 17:34:53 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id EAFFF534A7; Thu, 24 Mar 2005 17:34:52 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j2OHYp4K027949; Thu, 24 Mar 2005 12:34:51 -0500 (EST) To: David Fetter Cc: PostgreSQL Docs , PostgreSQL Patches Subject: Re: Approximate count(*) In-reply-to: <20050324170137.GA15848@fetter.org> References: <20050324170137.GA15848@fetter.org> Comments: In-reply-to David Fetter message dated "Thu, 24 Mar 2005 09:01:37 -0800" Date: Thu, 24 Mar 2005 12:34:51 -0500 Message-ID: <27948.1111685691@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/15 X-Sequence-Number: 2911 David Fetter 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