Joost Kraaijeveld <[EMAIL PROTECTED]> 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°

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to