X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B7C25D1C513 for ; Wed, 6 Aug 2003 14:52:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 37959-07 for ; Wed, 6 Aug 2003 11:51:37 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id AA5ACD1C4C1 for ; Wed, 6 Aug 2003 11:52:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h76EqgSa018462; Wed, 6 Aug 2003 10:52:42 -0400 (EDT) To: pgboy@guthrie.charm.net Cc: pgsql-admin@postgresql.org Subject: Re: counting rows In-reply-to: References: Comments: In-reply-to pgboy@guthrie.charm.net message dated "Wed, 06 Aug 2003 09:25:18 -0400" Date: Wed, 06 Aug 2003 10:52:42 -0400 Message-ID: <18459.1060181562@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/76 X-Sequence-Number: 9799 pgboy@guthrie.charm.net writes: > so, i am wondering if analyze also does a table scan, It does not --- it does a statistical sampling, and it's quite possible that the estimate will be badly off. regards, tom lane