Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7579E9FBA29 for ; Mon, 14 May 2007 15:36:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70177-08 for ; Mon, 14 May 2007 15:36:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 772649FB38B for ; Mon, 14 May 2007 15:36:20 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 5D3B6564DC; Mon, 14 May 2007 13:36:19 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 14 May 2007 13:36:16 -0500 Date: Mon, 14 May 2007 13:36:16 -0500 From: "Jim C. Nasby" To: Y Sidhu Cc: pgsql-performance@postgresql.org Subject: Re: pg_stats how-to? Message-ID: <20070514183615.GW69517@nasby.net> References: <4647B0A9.7080304@gmail.com> <20070514162610.GO69517@nasby.net> <20070514174558.GS69517@decibel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070514:ysidhu@gmail.com::7FsjeUqIy2oMC8Kj:04u9o X-Hashcash: 1:20:070514:pgsql-performance@postgresql.org::JoObRcPMKcy6nQFb:00000 0000000000000000000000007640 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/255 X-Sequence-Number: 24645 On Mon, May 14, 2007 at 11:09:21AM -0700, Y Sidhu wrote: > The stats_block_level and stats_row_level are NOT enabled. The question is > how to use pg_stats. Do I access/see them via the ANALYZE command? or using > SQL. I cannot find any document which will get me started on this. Ok, we're both confused I think... I thought you were talking about the pg_stat* views, which depend on the statistics collector (that's what the stats_* parameters control). That actually has nothing at all to do with pg_stats or pg_statistics. Those deal with statistics about the data in the database, and not about statistics from the engine (which is what the pg_stat* views do...). If you want to know about pg_stats, take a look at http://www.postgresql.org/docs/8.2/interactive/view-pg-stats.html ... but normally you shouldn't need to worry yourself about that. Are you trying to debug something? Information about the backend statistics can be found at http://www.postgresql.org/docs/8.2/interactive/monitoring.html -- Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)