Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 820C7637255 for ; Thu, 10 Dec 2009 21:19:41 -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 69439-01-3 for ; Fri, 11 Dec 2009 01:19:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 7EF9C636CE5 for ; Thu, 10 Dec 2009 21:16:53 -0400 (AST) Received: from 219-88-219-64.jetstream.xtra.co.nz ([219.88.219.64] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NIu7i-0007O6-FD; Fri, 11 Dec 2009 14:16:49 +1300 Message-ID: <4B219D76.1080600@opencloud.com> Date: Fri, 11 Dec 2009 14:16:38 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: John R Pierce CC: pgsql-jdbc@postgresql.org Subject: Re: Connection.setReadOnly() References: <4B21737B.50009@hogranch.com> <4B219025.5070607@hogranch.com> <4B219538.2090203@opencloud.com> <4B2198E4.5090306@hogranch.com> In-Reply-To: <4B2198E4.5090306@hogranch.com> X-Enigmail-Version: 0.95.7 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=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/18 X-Sequence-Number: 20099 John R Pierce wrote: > Oliver Jowett wrote: >> 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. Maybe not, but it's a fairly well known quirk of Postgresql that long-running transactions don't work so well; the JDBC driver is no different to any other interface in this regard. If you don't care about transaction boundaries, why are you even turning off autocommit in the first place? It's a little unfair to explicitly turn off autocommit, then complain that you need to manually commit transactions! -O