Re: [ANNOUNCE] pgtop, display PostgreSQL processes in `top' style

Поиск
Список
Период
Сортировка
От Jeff -
Тема Re: [ANNOUNCE] pgtop, display PostgreSQL processes in `top' style
Дата
Msg-id 8721B090-C082-4860-88F3-CBD60EE4D4D0@torgo.978.org
обсуждение исходный текст
Ответ на Re: [ANNOUNCE] pgtop, display PostgreSQL processes in `top' style  (Markus Schaber <schabi@logix-tt.com>)
Список pgsql-sql
On May 2, 2005, at 6:09 PM, Markus Schaber wrote:
>
>> 1) is it possible to know Pg backend uptime with
>>    SQL queries? Or must I look at postmaster.pid file?
>>    or even something else?
>>
>
> In contrib, there's a function caled backend_pid() defined in
> misc_utils.sql, it may be helpful for you.
>
> markus
>

I wrote a small util called "pgtop" that does a top style listing on  
PG in terms of cpu. I also have one called pgiomonitor (that is on  
pgfoundry and mostly done) that does the same but shows you which  
tables are producing the most IO)

http://postgresql.jefftrout.com/pgtop.pl

it only runs on linux and it must run on the same box as pg itself.
You may want to look at it and see if you can get anything good out  
of it.

queries / second is tricky.  You could look at my pgspy utility but  
it is in C.  It can give you queries / second data
--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/






В списке pgsql-sql по дате отправления:

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: all server processes terminated; reinitializing
Следующее
От: Mischa Sandberg
Дата:
Сообщение: HELP: aggregating insert rule for multirow inserts.