Re: Selects query stats?

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Selects query stats?
Дата
Msg-id 1148410273.2755.179.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Selects query stats?  (Dan Gorman <dgorman@hi5.com>)
Ответы Re: Selects query stats?  (Dan Gorman <dgorman@hi5.com>)
Список pgsql-performance
On Tue, 2006-05-23 at 11:33 -0700, Dan Gorman wrote:
> In any other DB (oracle, mysql) I know how many queries (selects) per
> second the database is executing. How do I get this
> number out of postgres?
>
>
> I have a perl script that can test this, but no way the db tells me
> how fast it's going.
>
>
> (e.g. in oracle: select sum(executions) from v$sqlarea;)

The Oracle query you show doesn't do that either. It tells you how many
statements have been executed since startup, not per second.

The main problem with what you ask is it only seems to have value. If
the value dips for some reason, you have no way of knowing whether that
occurred because the arrival rate dropped off, there is a system problem
or whether statements just happened to access more data over that time
period. You can collect information that would allow you to understand
what is happening on your system and summarise that as you choose.

--
  Simon Riggs
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Selects query stats?
Следующее
От: Dan Gorman
Дата:
Сообщение: Re: Selects query stats?