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 D8FFE11F653D for ; Tue, 28 Mar 2006 21:57:04 -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 58331-08 for ; Tue, 28 Mar 2006 21:57:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id C8B2211F653B for ; Tue, 28 Mar 2006 21:57:02 -0400 (AST) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.169]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FOPvf-0001sx-Pf; Wed, 29 Mar 2006 13:57:00 +1200 Message-ID: <4429E96F.5000502@opencloud.com> Date: Wed, 29 Mar 2006 10:57:03 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer CC: Kevin Dorne , 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: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/135 X-Sequence-Number: 14916 Dave Cramer wrote: > Kevin, > > Well, the server doesn't really know the difference between a query > from jdbc vs a query from psql. 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 Well, there is actually quite a big difference. psql uses the simple query protocol. JDBC uses the extended query protocol. See previous discussion on -hackers about the difficulties in logging the extended query protocol usefully.. -O