From: Jim Nasby <jnasby@pervasive.com>
To: Steve Poe <steve.poe@gmail.com>
Cc: Pgsql-Performance \(E-mail\) <pgsql-performance@postgresql.org>
Subject: Re: Blocks read for index scans
Date: Thu, 13 Apr 2006 13:48:22 -0500
Message-ID: <4D27CB1096EF1C408F4BFAB0046EC7B6099ED1@ausmailid.aus.pervasive.com> (raw)
Adding -performance back in...
> From: Steve Poe [mailto:steve.poe@gmail.com]
> Jim,
>
> I could be way off, but doesn't from pg_statio_user_tables
> contain this
> information?
http://www.postgresql.org/docs/8.1/interactive/monitoring-stats.html#MONITORING-STATS-VIEWS states:
"numbers of disk blocks read and buffer hits in all indexes of that table"
That leads me to believe that it's only tracking index blocks read, and not heap blocks read. One could presume that each index row read as reported by pg_stat_all_tables would represent a heap block read, but a large number of those would (hopefully) have already been in shared_buffers.
> On Thu, 2006-04-13 at 13:00 -0500, Jim Nasby wrote:
> > While working on determining a good stripe size for a database, I
> > realized it would be handy to know what the average request
> size is.
> > Getting this info is a simple matter of joining pg_stat_all_tables
> > and pg_statio_all_tables and doing some math, but there's
> one issue
> > I've found; it appears that there's no information on how
> many heap
> > blocks were read in by an index scan. Is there any way to
> get that info?
--
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: jnasby@pervasive.com, steve.poe@gmail.com
Subject: Re: Blocks read for index scans
In-Reply-To: <4D27CB1096EF1C408F4BFAB0046EC7B6099ED1@ausmailid.aus.pervasive.com>
References: <4D27CB1096EF1C408F4BFAB0046EC7B6099ED1@ausmailid.aus.pervasive.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox