Re: Memory usage - indexes

From: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Memory usage - indexes
Date: 2010-09-24 19:24:54
Message-ID: 4C9CFB06.8090403@ca.afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tobias Brox 2010-09-24 19:58:12 Re: Memory usage - indexes
Previous Message Bob Lunney 2010-09-24 19:06:05 Re: Memory usage - indexes