X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 90812DB0F0 for ; Wed, 23 Nov 2005 19:22:48 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98966-04 for ; Wed, 23 Nov 2005 23:22:50 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 02214DBA9A for ; Wed, 23 Nov 2005 19:22:44 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Ef3ws-0003Aq-Sg; Thu, 24 Nov 2005 12:22:47 +1300 Message-ID: <4384F9C6.90502@opencloud.com> Date: Thu, 24 Nov 2005 12:22:46 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-jdbc@postgresql.org Subject: Re: Room to optimize updates through ResultSet References: <43849CD80200002500000910@gwmta.wicourts.gov> In-Reply-To: <43849CD80200002500000910@gwmta.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/182 X-Sequence-Number: 14280 Kevin Grittner wrote: > I'm not really complaining, since PostgreSQL is significantly faster on > these updates than another product (for which the license agreement > prohibits posting benchmarks without their approval); but, it does seem > that there is room to optimize this if anyone is so inclinded. (I may > look at it myself some day, but there are other issues that matter much > more to me, so not soon.) > > (1) I would think the creation of the exception could be eliminated. > There is no exceptional situation here. Yeah. Patch? :) (the only reason it gets logged is that the implementation of java.sql.SQLException logs on construction -- i.e. we can't avoid logging every exception we create..) > (2) It seems like it might be possible to avoid some round trips here, > although I haven't looked at the issues in detail. What specifically? IIRC we're piggybacking on the metadata code which already has lots of server-version-specific logic in it .. we don't really want to duplicate that logic. -O