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 509619DCC76 for ; Mon, 27 Mar 2006 23:19:15 -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 59128-01 for ; Mon, 27 Mar 2006 23:19:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E3CFD9DCC68 for ; Mon, 27 Mar 2006 23:19:12 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k2S3J9Yd026454; Mon, 27 Mar 2006 22:19:09 -0500 (EST) To: Dave Cramer cc: Kevin Dorne , pgsql-jdbc@postgresql.org Subject: Re: Printing query durations In-reply-to: References: <442890D9.40905@catalyst.net.nz> Comments: In-reply-to Dave Cramer message dated "Mon, 27 Mar 2006 22:01:26 -0500" Date: Mon, 27 Mar 2006 22:19:09 -0500 Message-ID: <26453.1143515949@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200603/122 X-Sequence-Number: 14903 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.) regards, tom lane