pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dawid Kuroczko <qnex42@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Tools for PostgreSQL stats monitoring?
Date: Thu, 3 May 2007 15:52:39 +0200
Message-ID: <758d5e7f0705030652t6fc4923dnab00ccec3c41426d@mail.gmail.com> (raw)

Having done a series of
  CREATE TEMP TABLE snap_user_idx AS SELECT * FROM pg_stat_user_indexes;
  SELECT t1.indexrelname,t1.idx_scan-t0.idx_scan as idx_scan,
t1.idx_tup_read-t0.idx_tup_read AS idx_tup_read,
t1.idx_tup_fetch-t0.idx_tup_fetch as idx_tup_fetch
  FROM pg_stat_user_indexes t1 JOIN snap_user_idx t0 USING (indexrelid)
  ORDER BY 4;

...it occured to me I'm probably reinventing the wheel.  There should already
be a utility which could present all those marvels hidden in 'pg_stat%' tables,
present them as nice graphs, highlight most used indexes, etc, etc.

Maybe one of you is already using such a thing and can direct me to it?

   Regards,
      Dawid



view thread (2+ messages)  latest in thread

Message-ID: <758d5e7f0705030652t6fc4923dnab00ccec3c41426d@mail.gmail.com>
Permalink:  ../758d5e7f0705030652t6fc4923dnab00ccec3c41426d@mail.gmail.com/
Also on:    postgresql.org/message-id/758d5e7f0705030652t6fc4923dnab00ccec3c41426d@mail.gmail.com

 · 

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: qnex42@gmail.com
  Subject: Re: Tools for PostgreSQL stats monitoring?
  In-Reply-To: <758d5e7f0705030652t6fc4923dnab00ccec3c41426d@mail.gmail.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