X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DD2BD54F98 for ; Wed, 9 Mar 2005 21:31:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55604-08 for ; Wed, 9 Mar 2005 21:31:38 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 08CED52D42 for ; Wed, 9 Mar 2005 21:31:37 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1D98mE-0002kr-00; Thu, 10 Mar 2005 10:31:34 +1300 Message-ID: <422F6B34.5040207@opencloud.com> Date: Thu, 10 Mar 2005 10:31:32 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ryszard Lach Cc: pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL 8.0 can't print duration in log when client References: <20050309211522.GA18480@autograf.pl> In-Reply-To: <20050309211522.GA18480@autograf.pl> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/96 X-Sequence-Number: 12488 Ryszard Lach wrote: > I noticed, that PostgreSQL cannot print statement duration when a Java > client is using JDBC driver (I've tested with JDK1.4.2 and JDBC-2 and > JDBC-3 postgresql8 drivers). Changing driver to 7.4 (JDBC-3) solves the > problem. Strange, isn't it? This is likely to be because the newer driver uses the extended-query protocol. Current backends don't handle logging of the extended-query protocol very well, I guess that statement duration logging is another manifestation of this. -O