X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9A5109DC9DA for ; Tue, 28 Mar 2006 00:33:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69954-04 for ; Tue, 28 Mar 2006 00:33:57 -0400 (AST) X-Greylist: delayed 03:07:08.388546 by SQLgrey- Received: from mail1.catalyst.net.nz (godel.catalyst.net.nz [202.78.240.40]) by postgresql.org (Postfix) with ESMTP id DB73B9DC8AE for ; Tue, 28 Mar 2006 00:33:56 -0400 (AST) Received: from leibniz.catalyst.net.nz ([202.78.240.7] helo=[192.168.2.46]) by mail1.catalyst.net.nz with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1FO5tz-0000Xs-7W for pgsql-jdbc@postgresql.org; Tue, 28 Mar 2006 16:33:55 +1200 Message-ID: <4428BCB0.2040002@catalyst.net.nz> Date: Tue, 28 Mar 2006 16:33:52 +1200 From: Kevin Dorne Organization: Catalyst IT Ltd. User-Agent: Thunderbird 1.5 (X11/20060212) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Printing query durations References: <442890D9.40905@catalyst.net.nz> <26453.1143515949@sss.pgh.pa.us> In-Reply-To: <26453.1143515949@sss.pgh.pa.us> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF7995CD4C2D3FB5C56D15CF4" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.08 required=5 tests=[AWL=0.080] X-Spam-Score: 0.08 X-Spam-Level: X-Archive-Number: 200603/125 X-Sequence-Number: 14906 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF7995CD4C2D3FB5C56D15CF4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tom Lane wrote: > Dave Cramer writes: >> There is no difference between a jdbc query and a psql query. The =20 >> backend doesn't know where the query comes from. >=20 > However, the backend has different code paths for V2 and V3 protocol, > and it could be that what he's looking at is a deficiency in the V3 > protocol logging support. If so, telling jdbc to use V2 would help. > (I'm being tentative about this because the backend version was not > mentioned --- we've fixed some of that stuff in recent releases.) Well, to clarify, we're using PostgreSQL 7.4.7. I'm not actually sure what JDBC version we're using, as I've just encountered a (usefully-named) postgresql.jar file, but I'm fairly certain it's an 8.1.x. Is there an easy way to tell? And yes, we are using V3 protocol. -k --------------enigF7995CD4C2D3FB5C56D15CF4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEKLyzWPypEt5k4n0RAg5yAJ9MSuSiZmxr2pi+ozgabHDE2WqTaQCg6tL/ ZqVGR+cRUCCc9kxkBFzJZ60= =0fnk -----END PGP SIGNATURE----- --------------enigF7995CD4C2D3FB5C56D15CF4--