Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C56BB291762 for ; Sun, 22 Jul 2012 16:19:58 -0300 (ADT) Received: from ponto.amerinoc.com ([64.6.108.239]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1St1h7-0007mj-Fv for pgsql-jdbc@postgresql.org; Sun, 22 Jul 2012 19:19:58 +0000 Received: from fbsd8.localdomain (205.83.broadband7.iol.cz [88.102.83.205]) (authenticated bits=128) by ponto.amerinoc.com (8.14.5/8.14.5) with ESMTP id q6MJJdIe034307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 22 Jul 2012 21:19:43 +0200 (CEST) (envelope-from hsn@filez.com) Received: from [127.0.0.1] ([10.0.0.1]) by fbsd8.localdomain (8.14.5/8.14.4) with ESMTP id q6MJJYx0004313 for ; Sun, 22 Jul 2012 21:19:34 +0200 (CEST) (envelope-from hsn@filez.com) Message-ID: <500C1477.8010901@filez.com> Date: Sun, 22 Jul 2012 16:55:51 +0200 From: Radim Kolar User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 CC: PostgreSQL JDBC Subject: Re: not fetching all query results References: <50044D96.3050902@filez.com> <5004D8F2.509@ringerc.id.au> <50055065.6080308@filez.com> <500585D1.1000801@filez.com> <5005AB7C.5010508@filez.com> <5005C1AC.1030106@filez.com> <5005D257.9000100@filez.com> <5008E9AC.8030507@ringerc.id.au> <5008F022.40503@ejurka.com> In-Reply-To: <5008F022.40503@ejurka.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120722-0, 22.07.2012), Outbound message X-Antivirus-Status: Clean X-Pg-Spam-Score: 3.4 (+++) X-Archive-Number: 201207/37 X-Sequence-Number: 23135 > A transaction is required to keep the portal (protocol level cursor) > open. In autocommit mode, each batch fetched runs in its own > transaction. So after the first batch is fetched, the autocommit > transaction ends and the cursor is destroyed. So the next batch fetch > cannot work. what about to create transaction for each Statement in autocommit mode. after calling statement.close() close automatically created transaction.