pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Koen Martens <pgsql@metro.cx>
To: Ketema Harris <ketema@c4direct.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: IO query
Date: Mon, 01 May 2006 15:05:04 +0200
Message-ID: <44560780.7010308@metro.cx> (raw)
In-Reply-To: <C0767D8D.2D78%ketema@c4direct.com>
References: <C0767D8D.2D78%ketema@c4direct.com>

select oid from pg_class where relname='foo';

Ketema Harris wrote:
> Does anyone have a function or query that will loop through all the dbs in a
> cluster, gather all the oids for every table, then call
> pg_stat_get_db_blocks_fetched(oid)    and pg_stat_get_db_blocks_hit(oid),
> subtracting the latter from the former to get an estimate of kernel read()
> calls?  I would like to write on if there is not one already out there, but
> I don¹t know how to find the oid of a table with a query.  Where is that
> stored?
> 
> Thanks
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
> 
> 


-- 
K.F.J. Martens, Sonologic, http://www.sonologic.nl/
Networking, hosting, embedded systems, unix, artificial intelligence.
Public PGP key: http://www.metro.cx/pubkey-gmc.asc
Wondering about the funny attachment your mail program
can't read? Visit http://www.openpgp.org/



view thread (4+ messages)  latest in thread

Message-ID: <44560780.7010308@metro.cx>
Permalink:  ../44560780.7010308@metro.cx/
Also on:    postgresql.org/message-id/44560780.7010308@metro.cx

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgsql@metro.cx, ketema@c4direct.com
  Subject: Re: IO query
  In-Reply-To: <44560780.7010308@metro.cx>
  References: <C0767D8D.2D78%ketema@c4direct.com> <44560780.7010308@metro.cx>

* 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