Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5D57F63312B for ; Mon, 30 Nov 2009 05:57:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93710-07 for ; Mon, 30 Nov 2009 09:57:51 +0000 (UTC) X-Greylist: delayed 00:05:26.289671 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 A771C632A60 for ; Mon, 30 Nov 2009 05:57:51 -0400 (AST) Received: from [62.99.145.10] (port=9073 helo=mx.inode.at) by mailbackup.inode.at with esmtp (Exim 4.67) (envelope-from ) id 1NF2vf-0004Bi-QJ for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2009 10:52:23 +0100 Received: from [83.64.215.210] (port=12995 helo=[192.168.100.116]) by smartmx-10.inode.at with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NF2vY-0003e1-NK for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2009 10:52:16 +0100 From: hw@solvedirect.com Organization: Solvedirect Solutions To: pgsql-jdbc@postgresql.org Subject: Upgrading jdbc Date: Mon, 30 Nov 2009 10:52:14 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200911301052.14236.hw@solvedirect.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200911/33 X-Sequence-Number: 20080 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