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 4EA2311F623D for ; Wed, 29 Mar 2006 07:11:32 -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 96765-09 for ; Wed, 29 Mar 2006 07:11:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (unknown [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 8DB6111F61B8 for ; Wed, 29 Mar 2006 07:11:26 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (Ta2ae.t.pppool.de [89.55.162.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id A2929656CD; Wed, 29 Mar 2006 13:12:05 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id B4DD718530645; Wed, 29 Mar 2006 13:11:35 +0200 (CEST) Message-ID: <442A6B66.3010008@logix-tt.com> Date: Wed, 29 Mar 2006 13:11:34 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en 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.93.0.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.112 required=5 tests=[AWL=0.112] X-Spam-Score: 0.112 X-Spam-Level: X-Archive-Number: 200603/140 X-Sequence-Number: 14921 Hi, Dave, Dave Cramer wrote: > 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. That's not strictly true, there are more possible differences, AFAIR: V2 vs. V3 protocol. Plain statement vs. PREPARE and EXECUTE vs. DECLARE CURSOR / FETCH vs. V3 protocol-level prepare and bind. confusing, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org