Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aX0mK-0000rw-LM for pgsql-jdbc@arkaria.postgresql.org; Sat, 20 Feb 2016 06:12:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aX0mK-0001Zq-2y for pgsql-jdbc@arkaria.postgresql.org; Sat, 20 Feb 2016 06:12:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aX0mJ-0001ZT-H3 for pgsql-jdbc@postgresql.org; Sat, 20 Feb 2016 06:12:27 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aX0mF-0007HD-HV for pgsql-jdbc@postgresql.org; Sat, 20 Feb 2016 06:12:26 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u1K6CC722225 for ; Fri, 19 Feb 2016 22:12:12 -0800 Subject: Re: JDBC behaviour To: pgsql-jdbc@postgresql.org References: <954cc530fdaf2c5cf63dcb180d05fb56@imap.procolix.com> <4C508581-9CA3-490D-A376-CC1F9FF5D258@me.com> From: John R Pierce Message-ID: <56C803C1.2020904@hogranch.com> Date: Fri, 19 Feb 2016 22:12:17 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) 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 On 2/19/2016 8:40 PM, Sridhar N Bamandlapally wrote: > one feature of PostgreSQL is implemented into another feature of Java > ( i say subject PostgreSQL::autocommit Vs JDBC::setAutoCommit ), > i.e PostgreSQL::"set autocommit to FALSE" is implemented as > JDBC::"BEGIN--END" > > currently PostgreSQL::"set autocommit to FALSE ( not supported ) > > say in future, if PostgreSQL come with proper fix/support for "set > autocommit to FALSE" then will JDBC-team change the to code to > JDBC::"set autocommit to FALSE" ?, then what about existing behaviors > dependency applications ? in autocommit 'off' mode, most SQL databases start a transaction when you execute any modifying query, these transactions are by default atomic, and nothing is written til you commit. any errors cause the transaction to be put in failure mode, and the whole thing has to be rolled back. there are differing levels of transaction isolation depending on database capabilities and settings, but most relational transactional databases adhere to these basic semantics, and transactions are all or nothing. postgres differs only in that it is always in autocommit ON mode, unless you begin a transaction explicitly with BEGIN. the net effect is exactly the same. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc