X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2A1D911F6004 for ; Tue, 18 Apr 2006 17:01:32 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.321 X-Spam-Level: X-Spam-Status: No, score=0.321 required=5 tests=[AWL=0.321] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id YXASIzqTLIaS for ; Tue, 18 Apr 2006 17:01:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id C316211F7DF9 for ; Tue, 18 Apr 2006 17:01:16 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 61BAD56447; Tue, 18 Apr 2006 15:01:16 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 18 Apr 2006 15:01:16 -0500 Date: Tue, 18 Apr 2006 15:01:15 -0500 From: "Jim C. Nasby" To: Tom Lane Cc: Postgresql Performance Subject: Re: Blocks read for index scans Message-ID: <20060418200115.GF49405@pervasive.com> References: <85979594-1CCA-43C5-A8F2-08685CF41ACE@pervasive.com> <2789.1144974969@sss.pgh.pa.us> <20060414061414.GY49405@pervasive.com> <9369.1145027575@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9369.1145027575@sss.pgh.pa.us> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060418:tgl@sss.pgh.pa.us::yjKd+gfL5HURCpib:00000000000000000000 0000000000000000000000004oYG X-Hashcash: 1:20:060418:pgsql-performance@postgresql.org::zKEjyFinyaIBjkI1:00000 0000000000000000000000000IiD X-Archive-Number: 200604/394 X-Sequence-Number: 18478 On Fri, Apr 14, 2006 at 11:12:55AM -0400, Tom Lane wrote: > "Jim C. Nasby" writes: > > In my case it would be helpful to break the heap access numbers out > > between seqscans and index scans, since each of those represents very > > different access patterns. Would adding that be a mess? > > Yes; it'd require more counters-per-table than we now keep, thus > nontrivial bloat in the stats collector's tables. Not to mention ISTM it would only require two additional columns, which doesn't seem unreasonable, especially considering the value of the information collected. > incompatible changes in the pgstats views and the underlying functions > (which some apps probably use directly). There's certainly ways around that issue, especially since this would only be adding new information (though we would probably want to consider the old info as depricated and eventually remove it). -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461