Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E40CC9FA100 for ; Sun, 3 Dec 2006 05:56:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 62216-09 for ; Sun, 3 Dec 2006 05:56:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id 7FDA99F9F47 for ; Sun, 3 Dec 2006 05:56:47 -0400 (AST) Received: from a-kretschmer.de (p54B39F81.dip0.t-ipconnect.de [84.179.159.129]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id kB39ueMk028274 for ; Sun, 3 Dec 2006 10:56:41 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.61) (envelope-from ) id 1Gqo6K-0005pe-Jx for pgsql-performance@postgresql.org; Sun, 03 Dec 2006 10:57:36 +0100 Date: Sun, 3 Dec 2006 10:57:36 +0100 From: Andreas Kretschmer To: pgsql-performance@postgresql.org Subject: Re: Which query analiser tools are available? Message-ID: <20061203095736.GA20975@KanotixBox> References: <1165136365.11869.25.camel@panoramix> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1165136365.11869.25.camel@panoramix> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/26 X-Sequence-Number: 22082 Joost Kraaijeveld 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°