From: Kris Jurka <books@ejurka.com>
To: Rob Kirkbride <rob@rkcomputing.co.uk>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: More Verbose Logging of Statements
Date: Thu, 10 Nov 2005 11:15:44 -0500 (EST)
Message-ID: <Pine.BSO.4.61.0511101112450.28629@leary.csoft.net> (raw)
In-Reply-To: <437334FD.6000509@rkcomputing.co.uk>
References: <437334FD.6000509@rkcomputing.co.uk>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, rob@rkcomputing.co.uk
Subject: Re: More Verbose Logging of Statements
In-Reply-To: <Pine.BSO.4.61.0511101112450.28629@leary.csoft.net>
References: <437334FD.6000509@rkcomputing.co.uk> <Pine.BSO.4.61.0511101112450.28629@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox