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 F3C23DAE49 for ; Thu, 10 Nov 2005 12:19:57 -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-06 for ; Thu, 10 Nov 2005 16:19:56 +0000 (GMT) X-Greylist: delayed 04:25:10.157256 by SQLgrey- Received: from mra04.ch.as12513.net (mra04.ch.as12513.net [82.153.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id 7DD6FDABE9 for ; Thu, 10 Nov 2005 12:19:56 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mra04.ch.as12513.net (Postfix) with ESMTP id 74643C09EE; Thu, 10 Nov 2005 16:19:56 +0000 (GMT) Received: from mra04.ch.as12513.net ([127.0.0.1]) by localhost (mra04.ch.as12513.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03817-01-99; Thu, 10 Nov 2005 16:19:55 +0000 (GMT) Received: from [10.0.0.150] (unknown [81.5.146.249]) by mra04.ch.as12513.net (Postfix) with ESMTP id 30E08C0452; Thu, 10 Nov 2005 16:19:55 +0000 (GMT) Message-ID: <43737329.1050606@rkcomputing.co.uk> Date: Thu, 10 Nov 2005 16:19:53 +0000 From: Rob Kirkbride User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: More Verbose Logging of Statements References: <437334FD.6000509@rkcomputing.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/79 X-Sequence-Number: 14177 Kris Jurka wrote: > > > 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. > OK. Thanks. :-( It's to debug things like where you get constraint violation on keys but you don't what the key was. I guess I'd have to try and get the client to do it - hibernate - but this tends to print $s as well! Thanks, Rob