Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRTnf-00036J-TS for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 20:13:08 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRTna-0000DR-AR for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 20:13:07 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id q9PKCu912099 for ; Thu, 25 Oct 2012 13:12:57 -0700 Message-ID: <50899D43.80308@hogranch.com> Date: Thu, 25 Oct 2012 13:12:51 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: commit problem Content-Type: text/plain; charset=ISO-8859-1; 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: -2.6 (--) X-Archive-Number: 201210/118 X-Sequence-Number: 23442 my Java developers are telling me, the recent JDBC drivers are throwing an exception if they inadvertantly issue a commit() on an autocommit connection. this is causing a bunch of problems for us, we have a huge code base of java jdbc software which was originally written for Oracle, and it assumes that read only operations are NOT starting a transaction block (apparently Oracle only starts a transaction block on DML like insert/update/delete/select for update/etc.). We have long running threads which just do SELECTs and others that do transactions, some which can do either of these depending on external events. We've tried to make the SELECT only connections 'autocommit' so they don't start transaction blocks, and we've tried to enforce .Commit() on other situations, but the code is complex enough that sometimes the wires get crossed, and a Commit() s done on an autocommit connection. All of this is to prevent gigenormous data bloating from week-long in transactions. in the JDBC releases for PG 8.x, this was quietly ignored. On the new 9.x JDBC releases, this crashes with an ugly exception. My very-oracle-centric lead SQL developer is trying to use this as yet another excuse not to use Postgres as in his opinion, Oracle just 'does what you want'. ok, it does what HE wants, meh. Meanwhile, these random crashes that only show up under full production volume workloads (at our deployment sites in Asia) are freaking out the operations people, who ALSO are becoming afraid of Postgres. -- john r pierce N 37, W 122 santa cruz ca mid-left coast