pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Campbell, Lance <lance@uiuc.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_stat_all_indexes
Date: Fri, 02 Nov 2007 11:26:50 -0400
Message-ID: <29832.1194017210@sss.pgh.pa.us> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760197DD1@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE8760197DD1@SAB-FENWICK.sab.uiuc.edu>

"Campbell, Lance" <lance@uiuc.edu> writes:
> select * from pg_stat_all_indexes;
> My hope was to see if my indexes are being used.  The values I got were
> all 0's for the columns: idx_scan, idx_tup_read, and idx_tup_fetch.

You aren't collecting these stats:

> #stats_block_level = off
> #stats_row_level = off

			regards, tom lane



view thread (2+ messages)

Message-ID: <29832.1194017210@sss.pgh.pa.us>
Permalink:  ../29832.1194017210@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29832.1194017210@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lance@uiuc.edu
  Subject: Re: pg_stat_all_indexes
  In-Reply-To: <29832.1194017210@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