Re: Which query analiser tools are available?

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Which query analiser tools are available?
Дата
Msg-id 20061203095736.GA20975@KanotixBox
обсуждение исходный текст
Ответ на Which query analiser tools are available?  (Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>)
Список pgsql-performance
Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl> schrieb:
> Because JBoss is largely responsible for the SQL queries that are send
> to the back-end , I would like to see the queries that are actually
> received by PostgreSQL (insert, select, update and delete), together
> with the number of times they are called, the average execution time,
> total execution time etc.

You can use pgfouine for such job:
http://pgfouine.projects.postgresql.org/

And you can play with config-parameters like:

- log_statement = [none, mod, ddl, all]
- log_min_duration_statement = X (logs all statements runs longer then X
  ms)
- stats_command_string = on


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Joost Kraaijeveld
Дата:
Сообщение: Which query analiser tools are available?
Следующее
От: "Alexandru Coseru"
Дата:
Сообщение: Re: Regex performance issue