Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 02D202E2F20 for ; Thu, 13 Dec 2007 17:15:27 -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 84165-10 for ; Thu, 13 Dec 2007 17:15:18 -0400 (AST) Received: from mail.capital-internet.net (mail.capital-internet.net [216.136.66.10]) by postgresql.org (Postfix) with ESMTP id 7F6B52E3205 for ; Thu, 13 Dec 2007 17:15:21 -0400 (AST) Received: from [192.168.1.37] (unknown [66.195.146.163]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.capital-internet.net (Postfix) with ESMTP id DDA5A1A428D0 for ; Thu, 13 Dec 2007 15:14:26 -0600 (CST) Message-Id: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> From: Tom Duffey To: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Slow query after upgrades Date: Thu, 13 Dec 2007 15:15:19 -0600 X-Mailer: Apple Mail (2.915) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/92 X-Sequence-Number: 17947 Hi All, We recently upgraded both our PostgreSQL server version (8.1.10 to 8.2.5) and JDBC driver version (pg74.216.jdbc3, yeah, I know... to 8.2-507 JDBC4). Our application has several components and all but one are working great. Unfortunately, one of them is running much slower when I use the new JDBC driver. If I leave everything else exactly the same but roll back to the pg74.216.jdbc3 driver performance improves quite a bit. By quite a bit I mean a process that takes about 15 minutes to run with the old JDBC driver takes over an hour and a half with the new driver. 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. Best Regards, Tom