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 47C8ADA9E6 for ; Fri, 21 Oct 2005 20:01:27 -0300 (ADT) 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 21352-03 for ; Fri, 21 Oct 2005 23:01:22 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 3FAD4DA9C4 for ; Fri, 21 Oct 2005 20:01:23 -0300 (ADT) 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 1ET5t7-0003Sk-TI; Sat, 22 Oct 2005 12:01:26 +1300 Message-ID: <43597344.3080005@opencloud.com> Date: Sat, 22 Oct 2005 12:01:24 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Geert Bevin Cc: pgsql-jdbc@postgresql.org Subject: Re: Resultset holdability References: <4359576D.8050304@opencloud.com> <186ADB46-C466-4163-8596-B3BB9EB34D35@uwyn.com> In-Reply-To: <186ADB46-C466-4163-8596-B3BB9EB34D35@uwyn.com> 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, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200510/105 X-Sequence-Number: 14036 Geert Bevin wrote: >> Have you turned autocommit off? > > No The driver won't use portal-based resultsets unless you turn off autocommit. This is because it can't create the equivalent of a WITH HOLD cursor via protocol-level portals, so any portal created will be closed at the end of the creating transaction. With autocommit on, the transaction ends immediately after statement execution, so using a portal is pointless. Otherwise it sounds like you meet all the requirements (V3 protocol, TYPE_FORWARD_ONLY, and fetchsize > 0). -O