Re: Monitoring Object access

From: tv(at)fuzzy(dot)cz
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Monitoring Object access
Date: 2010-09-14 15:32:32
Message-ID: 1cfa65aa5a296cfee4767507f366cd8d.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I'd like to look at it from the object level and see how much I/O is being
> done on specific table or index and then check which sessions are
> responsible for that.
>
> also, what's the catalog table you would recommend me to use if I want to
> see I/O activity on an object regardless of the session?

There is a bunch of interesting tables - see pg_stat_ and pg_statio_ tables.

Don't forget the values grow all the time, so you'll have to do snapshots
and subtract them. You could do that by hand, or use a tool for that.
There is a "pgstatspack" (should work fine, although it's not developed
since 8.1 AFAIK) and I'm working on an alternative tool with a web GUI
(http://sourceforge.net/projects/pgmonitor/). Still under development and
I know about several issues, but generally works (thanks in advance for
any feedback).

Tomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luís de Sousa 2010-09-14 15:34:41 Re: Replacing characters in a string
Previous Message adi hirschtein 2010-09-14 13:59:29 Re: Monitoring Object access