Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0362063253E for ; Wed, 1 Sep 2010 05:28:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 24285-08 for ; Wed, 1 Sep 2010 08:28:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id 9E3B362DBD9 for ; Wed, 1 Sep 2010 05:28:22 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 063D99F7F; Wed, 1 Sep 2010 16:28:19 +0800 (WST) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id E255EAF1F8; Wed, 1 Sep 2010 16:28:18 +0800 (WST) Message-ID: <4C7E0C51.9010708@postnewspapers.com.au> Date: Wed, 01 Sep 2010 16:18:25 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Fabien JALABERT CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC: "transaction aborted" References: <54191bbe-6765-4b1c-bbfd-8fd2d9e6024f@f25g2000yqc.googlegroups.com> <4C7DB511.9080807@postnewspapers.com.au> <4C7E036B.6080407@laposte.net> In-Reply-To: <4C7E036B.6080407@laposte.net> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/3 X-Sequence-Number: 20873 On 01/09/10 15:40, Fabien JALABERT wrote: > Hello, if I turn on autocommit, will I be able to process transactions > with begin/commit/rollback as before ? If you mean issuing explicit "BEGIN", "COMMIT" and "ROLLBACK" statements as SQL text through the JDBC driver ... honestly, I'm not sure. It's not really how the JDBC interface is intended to work. Typically when using JDBC you would let the driver take care of this. You call conn.setAutoCommit(false); ... to open a transaction. Any work between then and a subsequent: conn.commit() or conn.rollback() is done in the transaction. -- Craig Ringer Tech-related writing: http://soapyfrogs.blogspot.com/