Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 53B64632488 for ; Thu, 10 Dec 2009 20:23:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 37964-05 for ; Fri, 11 Dec 2009 00:23:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id A8CDD6321EB for ; Thu, 10 Dec 2009 20:23:46 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id B1A5BA3A6; Thu, 10 Dec 2009 19:23:44 -0500 (EST) Date: Thu, 10 Dec 2009 19:23:44 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: John R Pierce cc: pgsql-jdbc@postgresql.org Subject: Re: Connection.setReadOnly() In-Reply-To: <4B219025.5070607@hogranch.com> Message-ID: References: <4B21737B.50009@hogranch.com> <4B219025.5070607@hogranch.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.854 tagged_above=-10 required=5 tests=AWL=-0.744, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 200912/13 X-Sequence-Number: 20094 On Thu, 10 Dec 2009, John R Pierce wrote: > Kris Jurka wrote: >> Just because your connection is readonly doesn't mean that everyone elses >> is as well. If you want a consistent view of the database you can get that >> with a serializable transaction. > > my oracle developers are screaming bloody murder over this. > > they have processes that do nothing but reads. jdbc tosses a BEGIN; out > automatically. these processes never Commit(); on a read, why should they? So if they go to the trouble of doing a setReadOnly call, why not simply do a setAutoCommit(true) call as well? Kris Jurka