Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 92B339FB538 for ; Fri, 22 Jun 2007 11:00:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18348-10 for ; Fri, 22 Jun 2007 11:00:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 77B309FB699 for ; Fri, 22 Jun 2007 11:00:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5ME0R3l021412; Fri, 22 Jun 2007 10:00:27 -0400 (EDT) To: mario.splivalo@mobart.hr cc: pgsql-jdbc@postgresql.org Subject: Re: Log files cluttered with jdbc3/4 for pg8.2 In-reply-to: <1182518494.16014.15.camel@localhost.localdomain> References: <1182343472.12993.7.camel@localhost.localdomain> <18051.1182352589@sss.pgh.pa.us> <1182518494.16014.15.camel@localhost.localdomain> Comments: In-reply-to Mario Splivalo message dated "Fri, 22 Jun 2007 15:21:34 +0200" Date: Fri, 22 Jun 2007 10:00:27 -0400 Message-ID: <21411.1182520827@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/74 X-Sequence-Number: 17136 Mario Splivalo writes: > On Wed, 2007-06-20 at 11:16 -0400, Tom Lane wrote: >> Well, if you set log_min_messages to DEBUG, as you evidently have, >> you're going to get a pretty chatty log. You might want to rethink >> your log_duration threshold as well. > Yes, I have log_min_messages to DEBUG, but if I set it to INFO, NOTICE, > WARNING or ERROR I still have PARSE LOG, BIND LOG/BIND DETAIL entries. I > haven't been able to found what exactley they are, and I'd realy like to > not have them in my log files. They're real actions, they take a finite amount of time, and if you've got log_duration unconditionally enabled then they're going to be logged so that the system can report its CPU use. > I need to have log_duration at 0 so I log EVERY call from the jdbc to > the postgresql because that's excellent way of debuging the dataflow > from the middle-tier to the application. That is a job for log_statement not log_duration. > Could anyone point me on what exactly PARSE LOG and BIND LOG entries > are? http://www.postgresql.org/docs/8.2/static/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY regards, tom lane