Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 22FF5634746 for ; Thu, 20 Aug 2009 11:52:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 07958-07 for ; Thu, 20 Aug 2009 14:52:10 +0000 (UTC) X-Greylist: delayed 00:05:27.157569 by SQLgrey-1.7.6 Received: from mailbackup.inode.at (mailbackup.inode.at [213.229.60.24]) by mail.postgresql.org (Postfix) with ESMTP id 24E48634065 for ; Thu, 20 Aug 2009 11:52:19 -0300 (ADT) Received: from [62.99.145.16] (port=10510 helo=mx.inode.at) by mailbackup.inode.at with esmtp (Exim 4.67) (envelope-from ) id 1Me8uf-0001HQ-89 for pgsql-jdbc@postgresql.org; Thu, 20 Aug 2009 16:46:49 +0200 Received: from [83.64.215.210] (port=9239 helo=sd113) by smartmx-14.inode.at with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Me8uS-0000HI-4z for pgsql-jdbc@postgresql.org; Thu, 20 Aug 2009 16:46:36 +0200 From: hw@solvedirect.com Organization: Solvedirect Solutions To: pgsql-jdbc@postgresql.org Subject: Upgrading jdbc Date: Thu, 20 Aug 2009 16:46:38 +0200 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908201646.38271.hw@solvedirect.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 200908/44 X-Sequence-Number: 19893 Hello! I'm trying to upgrade to the current jdbc. I tried both jdbc3 and jdbc4. Until now we've been using pg74.215.jdbc3.jar. The code is using methods that need a ResultSet with a Type different than TYPE_FORWARD_ONLY. In the 7.4-version this seems to be standard. For the new one I need to do: PreparedStatement stmnt = connection.prepareStatement(JDBCEscSeq.convertEscSeq(sqlStmnt, objs), java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY); for the code to function as before. So far this works. Unfortunately the execution of some statements is extremly slow. I identified "org.postgresql.core.v3.QueryExecutorImpl.receiveFields()" as the point where the time is spent. I'm using JDK 1.6. Are there any hints I'm missing, any settings I need to set? Thanks for advise, H. Wurth