X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 938D2D7BF7 for ; Thu, 10 Nov 2005 12:13:22 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65877-03 for ; Thu, 10 Nov 2005 16:13:20 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 8C489D7BB0 for ; Thu, 10 Nov 2005 12:13:19 -0400 (AST) Received: (qmail 7763 invoked by uid 1112); 10 Nov 2005 16:15:44 -0000 Date: Thu, 10 Nov 2005 11:15:44 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Rob Kirkbride Cc: pgsql-jdbc@postgresql.org Subject: Re: More Verbose Logging of Statements In-Reply-To: <437334FD.6000509@rkcomputing.co.uk> Message-ID: References: <437334FD.6000509@rkcomputing.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.008 required=5 tests=[AWL=0.008] X-Spam-Score: 0.008 X-Spam-Level: X-Archive-Number: 200511/78 X-Sequence-Number: 14176 On Thu, 10 Nov 2005, Rob Kirkbride wrote: > I've been trying to understand the documentation at > http://www.postgresql.org/docs/8.0/static/runtime-config.html but I can't get > it to put into my logfile the actual contents of prepared statement > parameters. I just get $1, $2 etc. I'd like to show me what those are either > in the actual line or below I don't mind which. > No, the JDBC driver uses the new extended query protocol by default which the server does not log very well. You could make the driver fallback to the older protocol by using the URL parameter ?protocolVersion=2 which is logged fully, but then you're not really testing the same thing if you are trying to debug a problem or do a performance analysis. Kris Jurka