Getting prepared statement parameters in log when using JDBC with PG 8

From: Kevin Murphy <murphy(at)genome(dot)chop(dot)edu>
To: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Getting prepared statement parameters in log when using JDBC with PG 8
Date: 2006-09-20 14:43:12
Message-ID: 45115380.8030101@genome.chop.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm hoping to see the parameters of prepared statements in the
postgresql log when using a JDBC client against postgresql 8.1?

I saw a post about using the V2 protocol.

Is there any downside to this?

Thanks,
Kevin

P.S. Looking at the driver documentation, I see that I can append the
protocol specification to the jdbc connect string, e.g.:

jdbc:postgresql://host:port?protocolVersion=2

I'll give that a try.

Browse pgsql-general by date

  From Date Subject
Next Message Matthias.Pitzl 2006-09-20 14:51:23 Re: Strange database corruption with PostgreSQL 7.4.x o
Previous Message Matthias.Pitzl 2006-09-20 14:40:35 Re: Strange database corruption with PostgreSQL 7.4.x o