Identifying time of last stat reset via sql

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Identifying time of last stat reset via sql
Дата
Msg-id 200412151223.03020.ed@LoehrTech.com
обсуждение исходный текст
Ответы Re: Identifying time of last stat reset via sql  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
I asked this on general, but didn't receive any responses.  Is it possible 
via SQL to identify the time of the last stat reset (or pg_stat_reset() 
call)?  This is what I'm lacking to be able to measure query activity 
volume over time via SQL, i.e., maybe a function similar to the fictitious 
pg_stat_get_last_reset_time() below:
select sum(n_tup_ins + n_tup_upd + n_tup_del)    / (now() - pg_stat_get_last_reset_time()) as write_qpsfrom
pg_stat_all_tables

If not, would this be considered worthy of a TODO item?  Or is there another 
approached designed for determining QPS, etc?

Ed



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

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: V8.0rc1 On AIX.
Следующее
От: G u i d o B a r o s i o
Дата:
Сообщение: double error msg [ 8.0 rc1 ]