Re: IO query

From: Koen Martens <pgsql(at)metro(dot)cx>
To: Ketema Harris <ketema(at)c4direct(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: IO query
Date: 2006-05-01 13:05:04
Message-ID: 44560780.7010308@metro.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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/

In response to

  • IO query at 2006-04-27 17:54:21 from Ketema Harris

Browse pgsql-admin by date

  From Date Subject
Next Message Lane Van Ingen 2006-05-01 19:24:09 Re: IO query
Previous Message Koen Martens 2006-05-01 12:55:32 Re: Postmaster log perms and line suffix