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 D3C2511F6387 for ; Tue, 28 Mar 2006 21:59:35 -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 58367-05 for ; Tue, 28 Mar 2006 21:59:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail1.catalyst.net.nz (godel.catalyst.net.nz [202.78.240.40]) by postgresql.org (Postfix) with ESMTP id 9EADD11F6278 for ; Tue, 28 Mar 2006 21:59:33 -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 1FOPy9-00024Q-Fy for pgsql-jdbc@postgresql.org; Wed, 29 Mar 2006 13:59:33 +1200 Message-ID: <4429EA05.5090705@catalyst.net.nz> Date: Wed, 29 Mar 2006 13:59:33 +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> <1143541956.3839.329.camel@localhost.localdomain> <4429E5BC.9050604@catalyst.net.nz> In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigACA16BF6FA6D17C7A9B7A5B6" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.103 required=5 tests=[AWL=0.103] X-Spam-Score: 0.103 X-Spam-Level: X-Archive-Number: 200603/136 X-Sequence-Number: 14917 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigACA16BF6FA6D17C7A9B7A5B6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dave Cramer wrote: > Kevin, >=20 > Well, the server doesn't really know the difference between a query fro= m > jdbc vs a query from psql.=20 Yes, precisely why I am confused. > The only difference is how they connect. psql > usually connects to a unix domain socket, whereas jdbc connects via a > tcpip socket. Even this behaviour can be changed in psql by specifying > -h Ah, I hadn't thought of that, but it made no difference. > What is min_duration set to. Is it possible that the queries are faster= > through JDBC. Possibly because the server already has done the count? >=20 > Try setting min_duration to something ridiculously small. No, it's set to 0. I've also tried 1, 5, and 100, to no effect. If there really is no inherent difference between how JDBC and psql are connecting (aside from TCP vs. unix domain socket, which doesn't seem to make a difference), then I'm lost. But thanks for the suggestions. -k --------------enigACA16BF6FA6D17C7A9B7A5B6 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) iD8DBQFEKeoFWPypEt5k4n0RAvulAJ9OkHU4zyhFCtVsGu3i1gImhCpFNwCgiTER 3Zu6wdNo/Qne7/YJzsa4Y64= =amhy -----END PGP SIGNATURE----- --------------enigACA16BF6FA6D17C7A9B7A5B6--