Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 80E4B9FB9AA for ; Mon, 2 Jul 2007 09:41:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 95334-08 for ; Mon, 2 Jul 2007 09:41:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from pjetlic.mobart.hr (pjetlic.mobart.hr [80.80.51.10]) by postgresql.org (Postfix) with ESMTP id E207D9FBBD4 for ; Mon, 2 Jul 2007 09:41:47 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id 1B24C3C92E; Mon, 2 Jul 2007 14:41:45 +0200 (CEST) Received: from pjetlic.mobart.hr ([127.0.0.1]) by localhost (pjetlic [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22274-07; Mon, 2 Jul 2007 14:41:43 +0200 (CEST) Received: from mike.mobart.hr (mike.mobart.hr [192.168.10.94]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pjetlic.mobart.hr (Postfix) with ESMTP id 7377C3C92C; Mon, 2 Jul 2007 14:41:43 +0200 (CEST) Subject: Re: Log files cluttered with jdbc3/4 for pg8.2 From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: Tom Lane Cc: pgsql-jdbc@postgresql.org In-Reply-To: <21411.1182520827@sss.pgh.pa.us> References: <1182343472.12993.7.camel@localhost.localdomain> <18051.1182352589@sss.pgh.pa.us> <1182518494.16014.15.camel@localhost.localdomain> <21411.1182520827@sss.pgh.pa.us> Content-Type: text/plain Organization: Mob-Art d.o.o. Date: Mon, 02 Jul 2007 14:41:42 +0200 Message-Id: <1183380102.585.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by OpenSource AV+AS Mail Server X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/2 X-Sequence-Number: 17176 On Fri, 2007-06-22 at 10:00 -0400, Tom Lane wrote: > > 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. Thnx, that makes sense now :) I guess I overlooked log_statement for some reason in pg8.0. Altough I'd like to see this: SELECT LOG: execute : select * from ad_get('104', '2007-07-02 14:36:57.361+02', '109') instead of SELECT LOG: execute : select * from ad_get($1, $2, $3) as result SELECT DETAIL: parameters: $1 = '104', $2 = '2007-07-02 14:36:57.361 +02', $3 = '109' Yes, I know, prepared statements, but still.. Mario