Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 036ED632C60 for ; Thu, 10 Dec 2009 20:57:34 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65570-08 for ; Fri, 11 Dec 2009 00:57:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id 95889631873 for ; Thu, 10 Dec 2009 20:57:26 -0400 (AST) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id nBB0vDG27463; Thu, 10 Dec 2009 16:57:13 -0800 Message-ID: <4B2198E4.5090306@hogranch.com> Date: Thu, 10 Dec 2009 16:57:08 -0800 From: John R Pierce User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Oliver Jowett CC: pgsql-jdbc@postgresql.org Subject: Re: Connection.setReadOnly() References: <4B21737B.50009@hogranch.com> <4B219025.5070607@hogranch.com> <4B219538.2090203@opencloud.com> In-Reply-To: <4B219538.2090203@opencloud.com> 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-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/17 X-Sequence-Number: 20098 Oliver Jowett wrote: > Because if they're operating on a connection with autocommit off, the > JDBC spec is very specific about transaction boundaries, and it would > actually be incorrect for the driver *not* to start a transaction. I > have at least one application here that runs readonly queries inside a > transaction specifically because it wants a consistent view. > > Does the Oracle driver not follow the JDBC spec here? Or is it just that > long-term open transactions don't cause problems on Oracle? > the latter. long term transactions are not a problem for Oracle. As I said, they've been using an open transaction with a row lock as a MUTEX for an app that runs for weeks or even months. > If your oracle developers don't want manually committed transactions, > perhaps they should.. turn on autocommit. > otherwise, an app thats doing purely read queries has to periodically issue a Commit(). I have to say, doing Commit() on read operations is NOT at all intuitive. > It's somewhat telling that they identify themselves as "Oracle people". > Postgres isn't identical to Oracle; if you want applications that are > portable between RDBMSes you need to take some care, and presumably they > didn't do this originally and are now paying the price. > These two SQL developers have been working on this same family of manufacturing databases in oracle for like 12-15 years. Its me thats calling them 'oracle people' :)