X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4B5D03A58C2 for ; Fri, 3 Dec 2004 14:13:51 +0000 (GMT) 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 95079-07 for ; Fri, 3 Dec 2004 14:13:17 +0000 (GMT) Received: from candata.com (gateway.candata.com [204.225.91.106]) by svr1.postgresql.org (Postfix) with ESMTP id BDEF83A5809 for ; Fri, 3 Dec 2004 14:13:19 +0000 (GMT) Received: from playpen.candata.com (playpen.candata.com [192.168.1.2]) by candata.com (8.12.9/8.12.9) with ESMTP id iB3EDJwF030317; Fri, 3 Dec 2004 09:13:20 -0500 Subject: Re: Bug in setFetchSize From: Dave Smith To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <41AF8727.90404@opencloud.com> References: <1102005138.4563.9.camel@playpen.candata.com> <41AF8727.90404@opencloud.com> Content-Type: text/plain Message-Id: <1102083199.6713.3.camel@playpen.candata.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 03 Dec 2004 09:13:20 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/12 X-Sequence-Number: 11678 Does it matter if the setAutoCommit is true or false .. or is it just an explicit commit(); call that would close the portal? On Fri, 2004-12-03 at 05:20, Oliver Jowett wrote: > Dave Smith wrote: > > We are using pg80b1.308.jdbc3.jar with pg 7.4.5 and trying to use > > setFetchSize on Statement. > > > > Once we try and fetch outside the value we have set for fetchSize we get > > ERROR: portal "C_4" does not exist > > The only case I can think of this happening is if you are trying to use > a ResultSet after the transaction that created it has committed or > rolled back. > > You're not meant to do that unless you specify HOLD_CURSORS_OVER_COMMIT > (which the driver will currently reject as unsupported). The driver does > not explicitly close ResultSets on commit, but the server closes the > underlying cursor so you see this error. > > If that's not the scenario, can you provide some sample code that > demonstrates the problem? > > > So it looks like you are using fetchSize as an absolute size, which is > > not my reading of the spec. > > I don't understand your analysis. > > -O > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Dave Smith CANdata Systems Ltd 416-493-9020