Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XK7CL-00085G-A2 for pgsql-jdbc@arkaria.postgresql.org; Wed, 20 Aug 2014 14:49:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XK7CK-0006LZ-4e for pgsql-jdbc@arkaria.postgresql.org; Wed, 20 Aug 2014 14:49:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XK7CJ-0006LT-H2 for pgsql-jdbc@postgresql.org; Wed, 20 Aug 2014 14:49:11 +0000 Received: from smtp03.smtpout.orange.fr ([80.12.242.125] helo=smtp.smtpout.orange.fr) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XK7CF-0006LF-OP for pgsql-jdbc@postgresql.org; Wed, 20 Aug 2014 14:49:10 +0000 Received: from zimbra.cy.cassidian.net ([90.11.255.140]) by mwinf5d58 with ME id h2p51o00F32XWDm032p6Mu; Wed, 20 Aug 2014 16:49:06 +0200 X-ME-Helo: zimbra.cy.cassidian.net X-ME-Date: Wed, 20 Aug 2014 16:49:06 +0200 X-ME-IP: 90.11.255.140 Received: from zimbra.cy.cassidian.net (zimbra.cy.cassidian.net [192.50.50.220]) by zimbra.cy.cassidian.net (Postfix) with ESMTP id 37AC582CBD6 for ; Wed, 20 Aug 2014 15:39:13 +0200 (CEST) Date: Wed, 20 Aug 2014 15:39:12 +0200 (CEST) From: Christophe Canovas To: pgsql-jdbc@postgresql.org Message-ID: <10564239.43.1408541952917.JavaMail.root@zimbra.cy.cassidian.net> In-Reply-To: <28274652.41.1408541706510.JavaMail.root@zimbra.cy.cassidian.net> Subject: Cursors removed with commit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.50.50.52] X-Mailer: Zimbra 6.0.8_GA_2661 (ZimbraWebClient - SAF3 (Linux)/6.0.8_GA_2661) X-Pg-Spam-Score: 0.2 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hello, I have a problem with my huge database ; using cursors (so using a transaction with noautocommit, statement with type_forward_only) make cursors removed if I update and save (commit) database values in the same transaction during the fetch loop. Error message is : portal "C_03" doesn't exist All is fine if the commit is done in a different transaction. In more details, in the statement creation : con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, ResultSet.HOLD_CURSORS_OVER_COMMIT); the last parameter seems to have no effect ... ? Best Regards, Christophe -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc