Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id CC6322E2FBA for ; Thu, 13 Dec 2007 17:20:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 94605-04 for ; Thu, 13 Dec 2007 17:20:27 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 71EDE2E0235 for ; Thu, 13 Dec 2007 17:20:29 -0400 (AST) Received: from 219-88-219-156.jetstream.xtra.co.nz ([219.88.219.156] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J2vTk-0002tw-9Z; Fri, 14 Dec 2007 10:20:24 +1300 Message-ID: <4761A221.80604@opencloud.com> Date: Fri, 14 Dec 2007 10:20:33 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Tom Duffey CC: pgsql-jdbc@postgresql.org Subject: Re: Slow query after upgrades References: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> In-Reply-To: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/93 X-Sequence-Number: 17948 Tom Duffey wrote: > I'm leaving the old JDBC driver there for now but am wondering if anyone > has any ideas what I should look for to find a solution to this? I > jProfiled the execution and it is indeed the JDBC query that is taking > significantly more time to execute with the newer driver in place. Identify the slow query and build a testcase for that particular query and send it to the list? Also, beware of counting blocking I/O time as CPU time when doing Java profiling. Probably, the Java side is just blocking waiting on the server. There are server-side logging options you might want to look at too. The most likely cause is that more recent drivers ("recent" is very relative here, I think it went in for the 8.0 driver?) use the extended query protocol which can result in different plans for some queries. -O