Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 53AF663242F for ; Sun, 8 Aug 2010 21:55:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 05689-02 for ; Mon, 9 Aug 2010 00:55:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from web7.nidhog.com (web7.nidhog.com [198.144.36.131]) by mail.postgresql.org (Postfix) with ESMTP id A1D6162DBD7 for ; Sun, 8 Aug 2010 21:55:41 -0300 (ADT) Received: from XP2 (static-151-201-139-26.pitt.east.verizon.net [151.201.139.26]) (authenticated bits=0) by web7.nidhog.com (8.14.4/8.14.3) with ESMTP id o7914iMR060897 for ; Sun, 8 Aug 2010 21:04:47 -0400 (EDT) (envelope-from john@johntdow.com) Message-Id: <201008090104.o7914iMR060897@web7.nidhog.com> From: "John T. Dow" To: "pgsql-jdbc" Date: Sun, 08 Aug 2010 20:55:19 -0400 X-Mailer: PMMail 2000 Professional (2.20.2717) For Windows 2000 (5.1.2600;3) In-Reply-To: <4C5C44E3.10202@scharp.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: 9.0 Driver X-yoursite-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: o7914iMR060897 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: john@johntdow.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201008/25 X-Sequence-Number: 20828 There is, I believe, a problem with the JDBC driver in that it gives very poor performance doing a refreshRow. The problem is that the driver queries the server for every column in the resultset. I implemented a quick and dirty fix by modifying the driver to (on demand) use the labels returned in the resultset. This solution of course will fail if the original query used an alias for a column. Other than that, it seems to be a good solution. Apparently I am the only one who uses refreshrow, because I reported the fact that it was slow in January (and there was a little discussion) but when in April I reported my crude solution there was no discussion. John