pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Hoover <revoohc@gmail.com>
Cc: PGSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Help understanding stat numbers
Date: Fri, 09 Nov 2007 02:08:56 -0500
Message-ID: <1689.1194592136@sss.pgh.pa.us> (raw)
In-Reply-To: <1d219a6f0711080649w22a1eec6j69cab5ea5e5bc74b@mail.gmail.com>
References: <1d219a6f0711080649w22a1eec6j69cab5ea5e5bc74b@mail.gmail.com>

"Chris Hoover" <revoohc@gmail.com> writes:
> If there has been no scans on an index (as according to
> pg_stat_user_indexes), why is pg_statio_user_indexes showing non 0
> values in idx_blks_hit/read?

I grow weary, but I think that "scan" is only incremented by commencing
a SELECT search using the index, whereas the block-level counts are also
incremented when the index is modified by an insert or update.  You may
be looking at indexes that are eating update cycles but not being used
for anything important...

			regards, tom lane



view thread (2+ messages)

Message-ID: <1689.1194592136@sss.pgh.pa.us>
Permalink:  ../1689.1194592136@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1689.1194592136@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, revoohc@gmail.com
  Subject: Re: Help understanding stat numbers
  In-Reply-To: <1689.1194592136@sss.pgh.pa.us>

* 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