Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 13EB34760D7 for ; Wed, 25 Sep 2002 08:56:33 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 7B1444760A7 for ; Wed, 25 Sep 2002 08:56:32 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian -4) with SMTP id g8PCuWqP004827; Wed, 25 Sep 2002 07:56:33 -0500 Reply-To: From: "Nick Fankhauser" To: "Phil Geer" , "pgsql-admin" Subject: Re: logging queries Date: Wed, 25 Sep 2002 07:52:05 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <00df01c26360$e154b370$4ac16dd8@offback2000> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/256 X-Sequence-Number: 5795 Thanks Phil- That was exactly what I needed. A couple of notes that might help others- My goal was to get all of the SQL statements from a JDBC front-end to be logged as they are executed in the postgres.log file (and not in the syslog.) Adding the following to my postgresql.conf did the job: syslog = 0 silent_mode = off debug_print_query = on debug_pretty_print = on I'm not sure if the pretty print option does anything for the SQL, but it didn't hurt. -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Phil Geer > Sent: Monday, September 23, 2002 7:25 PM > To: nickf@ontko.com; pgsql-admin > Subject: Re: [ADMIN] logging queries > > > Here is a link to the doc you need. > > http://www.postgresql.org/idocs/index.php?runtime-config.html#LOGGING > > DEBUG_PRINT_QUERY (boolean) > DEBUG_PRINT_PARSE (boolean) > DEBUG_PRINT_REWRITTEN (boolean) > DEBUG_PRINT_PLAN (boolean) > DEBUG_PRETTY_PRINT (boolean) > > Hope this helps > Phil > ----- Original Message ----- > From: "Nick Fankhauser" > To: "pgsql-admin" > Sent: Monday, September 23, 2002 6:05 PM > Subject: [ADMIN] logging queries > > > > Hi- > > > > I'd like to set the logging or debug level so that the text of > the queries > > that are executed show up in the log file. It seems to me that I recall > this > > being discussed before, but I can't find any specific references in the > > runtime-config portion of the docs. > > > > Can someone tell me if this is possible & if so, what runtime > settings are > > needed? > > > > Thanks > > > > -Nick > > > > > -------------------------------------------------------------------------- > > Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax > 1.765.962.9788 > > Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)