pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brad Nicholson <bnichols@ca.afilias.info>
To: pgsql-performance@postgresql.org
Subject: Re: Memory usage - indexes
Date: Fri, 24 Sep 2010 15:24:54 -0400
Message-ID: <4C9CFB06.8090403@ca.afilias.info> (raw)
In-Reply-To: <173228.29370.qm@web39701.mail.mud.yahoo.com>
References: <173228.29370.qm@web39701.mail.mud.yahoo.com>

  On 10-09-24 03:06 PM, Bob Lunney wrote:
> The pertinent difference between pg_stat_user_indexes and pg_statio_user_indexes is the latter shows the number of blocks read from disk or found in the cache.

I have a minor, but very important correction involving this point.  The 
pg_statio tables show you what blocks are found in the Postgres buffer 
cache, and what ones are not.

For the ones that are not, those blocks may come from the OS filesystem 
cache, a battery backed cache, or on the actual disk.  There is a big 
difference in performance based on where you are actually getting those 
blocks from (and you can't this info from Postgres).

-- 
Brad Nicholson  416-673-4106
Database Administrator, Afilias Canada Corp.





view thread (24+ messages)  latest in thread

Message-ID: <4C9CFB06.8090403@ca.afilias.info>
Permalink:  ../4C9CFB06.8090403@ca.afilias.info/
Also on:    postgresql.org/message-id/4C9CFB06.8090403@ca.afilias.info

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bnichols@ca.afilias.info
  Subject: Re: Memory usage - indexes
  In-Reply-To: <4C9CFB06.8090403@ca.afilias.info>

* 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