Re: Better Connection Statistics

Поиск
Список
Период
Сортировка
От Shaun Thomas
Тема Re: Better Connection Statistics
Дата
Msg-id 0683F5F5A5C7FE419A752A034B4A0B97976F94BA@sswchi5pmbx2.peak6.net
обсуждение исходный текст
Ответ на Re: Better Connection Statistics  (rob stone <floriparob@gmail.com>)
Ответы Re: Better Connection Statistics  (bricklen <bricklen@gmail.com>)
Список pgsql-general
> Perhaps this might be of use.
> 
> http://www.postgresql.org/docs/current/static/pgstatstatements.html

Nope. As I said in the original message, pg_stat_statements only gives query stats for the whole database. What I want
toknow, is information about each client. Say there's a specific connection from 192.168.1.20. I want to know:
 

* How many queries that connection has executed.
* How much CPU time that connection has used since it connected.
* How much data was sent to that connection.
* How much data that connection sent to the database.

And so on. I don't believe that's currently possible. Effectively, it would just be adding a few more columns to
pg_stat_activityto track cumulative totals, since it always has the status of all connections.
 


______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

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

Предыдущее
От: rob stone
Дата:
Сообщение: Re: Better Connection Statistics
Следующее
От: Joe Van Dyk
Дата:
Сообщение: roles inheriting configuration values