Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 314059F9FAC for ; Thu, 4 Oct 2007 15:12:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 29432-01-2 for ; Thu, 4 Oct 2007 15:12:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id C2C5C9FB1E7 for ; Thu, 4 Oct 2007 15:12:50 -0300 (ADT) Received: from a-kretschmer.de (p54B3AA53.dip0.t-ipconnect.de [84.179.170.83]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id l94ICkM2011290 for ; Thu, 4 Oct 2007 20:12:47 +0200 Received: from kretschmer by a-kretschmer.de with local (Exim 4.61) (envelope-from ) id 1IdVGv-00077s-OR for pgsql-sql@postgresql.org; Thu, 04 Oct 2007 20:18:05 +0200 Date: Thu, 4 Oct 2007 20:18:05 +0200 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: What SQL is running against my DB? Message-ID: <20071004181805.GA26859@KanotixBox> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: 200710/29 X-Sequence-Number: 29401 Tore Lukashaugen schrieb: > Hello all, > > I have an application running against my postgres 8.2 database (on Windows > Vista) for which I do not have access to the source code. > > I would like to know what SQL statements are being executed by the > application. Is there a way to turn on logging in the server so that obtain > this information? Yes, of course. You can set in your postgresql.conf: log_statement = 'all' to log all statements. Read this file for more details, it is well documented. 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°