pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
Subject: Re: Which query analiser tools are available?
Date: Sun, 3 Dec 2006 10:57:36 +0100
Message-ID: <20061203095736.GA20975@KanotixBox> (raw)
In-Reply-To: <1165136365.11869.25.camel@panoramix>
References: <1165136365.11869.25.camel@panoramix>

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°



view thread (2+ messages)

Message-ID: <20061203095736.GA20975@KanotixBox>
Permalink:  ../20061203095736.GA20975@KanotixBox/
Also on:    postgresql.org/message-id/20061203095736.GA20975@KanotixBox

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: akretschmer@spamfence.net
  Subject: Re: Which query analiser tools are available?
  In-Reply-To: <20061203095736.GA20975@KanotixBox>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox