Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8D1A29FBE76 for ; Wed, 20 Jun 2007 09:44:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 54589-04-3 for ; Wed, 20 Jun 2007 09:44:37 -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 2AE7D9FBE62 for ; Wed, 20 Jun 2007 09:44:37 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id 1EF0F3C911 for ; Wed, 20 Jun 2007 14:44:35 +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 28463-08-7 for ; Wed, 20 Jun 2007 14:44:33 +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 1E8983C910 for ; Wed, 20 Jun 2007 14:44:33 +0200 (CEST) Subject: Log files cluttered with jdbc3/4 for pg8.2 From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: pgsql-jdbc@postgresql.org Content-Type: text/plain Organization: Mob-Art d.o.o. Date: Wed, 20 Jun 2007 14:44:32 +0200 Message-Id: <1182343472.12993.7.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: 200706/67 X-Sequence-Number: 17129 I was nagging couple of months earlier about postgres not logging function parameteres. Now we're planing on switching to pg8.2, so I'm doing some tests to see how it all works. I'm using postgres 8.2.4 with postgresql-8.2-505.jdbc3. I'm calling a simple function from Java, here is the Java code: CallableStatement cs = conn.prepareCall("{? = call f1(ROW(?,?))}"); cs.registerOutParameter(1, Types.INTEGER); cs.setInt(2,2); cs.setInt(3,3); cs.execute(); Now, this is how the postgres log file looks like: 2007-06-20 11:26:11.870 CEST [3990] <> DEBUG: forked new backend, pid=12137 socket=6 2007-06-20 11:26:11.935 CEST [12137] PARSE DEBUG: parse : select * from f1($1,ROW($2,$3)) as result 2007-06-20 11:26:11.936 CEST [12137] PARSE LOG: duration: 0.928 ms parse : select * from f1($1,ROW($2,$3)) as result 2007-06-20 11:26:11.936 CEST [12137] PARSE DEBUG: bind to 2007-06-20 11:26:11.936 CEST [12137] BIND LOG: duration: 0.171 ms bind : select * from f1($1,ROW($2,$3)) as result 2007-06-20 11:26:11.936 CEST [12137] BIND DETAIL: parameters: $1 = '', $2 = '2', $3 = '3' 2007-06-20 11:26:11.936 CEST [12137] SELECT LOG: duration: 0.036 ms execute : select * from f1($1,ROW($2,$3)) as result 2007-06-20 11:26:11.936 CEST [12137] SELECT DETAIL: parameters: $1 = '', $2 = '2', $3 = '3' 2007-06-20 11:26:12.057 CEST [12137] idle LOG: unexpected EOF on client connection 2007-06-20 11:26:12.058 CEST [3990] <> DEBUG: server process (PID 12137) exited with exit code 0 I finaly see the actuall parametars the function was called with, but, I have too much lines for a simple SELECT. Is there a way to turn off PARSE/BIND log entries, so I can have just the SELECTs? I tried tweaking postgresql.conf, everything I do produces no changes? The same happens with JDBC driver for pg8.1. If I use JDBC driver for pg7.4 then I have 'normal' log (presumeably because I don't have prepared statements from within JDBC driver for 7.4). And, if someone knows, why is it that I have SELECT LOG and SELECT DETAIL entry? Mario