Re: backend cpu usage? [7.2]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: backend cpu usage? [7.2]
Дата
Msg-id 14174.1059776481@sss.pgh.pa.us
обсуждение исходный текст
Ответ на backend cpu usage? [7.2]  (george young <gry@ll.mit.edu>)
Список pgsql-sql
george young <gry@ll.mit.edu> writes:
> How can I get cpu usage info in 7.2 about the backend process of my db
> connection?  I tried looking at the pg_stat_get_backend_pid function
> but it requires a backend_id that I don't know how to get.
> If I can get the backend pid I can fork a 'ps' command from my app,
> though it would be nicer to get it directly through sql.

There's a pg_backend_pid() function in 7.3 that returns your own PID.
Not sure if it was in 7.2.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: TODO item for plpgsql Was Re: obtuse plpgsql function needs
Следующее
От: Bertrand Petit
Дата:
Сообщение: Efficient deletions?