Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 79BCE9FB321 for ; Thu, 4 Oct 2007 14:54:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 27992-06 for ; Thu, 4 Oct 2007 14:54:19 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id E4F0B9FB3EB for ; Thu, 4 Oct 2007 14:54:20 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id l94HsIHR018234 for ; Thu, 4 Oct 2007 14:54:18 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id l94HdvH7008640 for pgsql-sql@postgresql.org; Thu, 4 Oct 2007 14:39:57 -0300 (ADT) (envelope-from news) From: "Tore Lukashaugen" X-Newsgroups: pgsql.sql Subject: What SQL is running against my DB? Date: Thu, 4 Oct 2007 18:39:09 +0100 Organization: Hub.Org Networking Services Lines: 13 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480 X-RFC2646: Format=Flowed; Original To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/28 X-Sequence-Number: 29400 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? Thanks Tore