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 0C6DC9DC863 for ; Mon, 27 Mar 2006 23:34:23 -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 61608-02 for ; Mon, 27 Mar 2006 23:34:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id AC6899DC85E for ; Mon, 27 Mar 2006 23:34:20 -0400 (AST) Received: (qmail 4087 invoked from network); 28 Mar 2006 03:34:25 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 28 Mar 2006 03:34:25 -0000 In-Reply-To: <26453.1143515949@sss.pgh.pa.us> References: <442890D9.40905@catalyst.net.nz> <26453.1143515949@sss.pgh.pa.us> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com> Cc: Kevin Dorne , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Printing query durations Date: Mon, 27 Mar 2006 22:34:24 -0500 To: Tom Lane X-Mailer: Apple Mail (2.746.3) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.133 required=5 tests=[AWL=0.133] X-Spam-Score: 0.133 X-Spam-Level: X-Archive-Number: 200603/124 X-Sequence-Number: 14905 On 27-Mar-06, at 10:19 PM, Tom Lane wrote: > Dave Cramer writes: >> There is no difference between a jdbc query and a psql query. The >> backend doesn't know where the query comes from. > > 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.) AFAIR, the deficiencies are in the logging of the prepared statements. Duration should be logged regardless, no ? > > regards, tom lane > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org >