Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F3D27633B62 for ; Thu, 10 Dec 2009 18:45:21 -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 46293-08 for ; Thu, 10 Dec 2009 22:45:14 +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 CA24A633A38 for ; Thu, 10 Dec 2009 18:45:14 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id E25DEA3B1; Thu, 10 Dec 2009 17:45:12 -0500 (EST) Date: Thu, 10 Dec 2009 17:45:12 -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: <4B21737B.50009@hogranch.com> Message-ID: References: <4B21737B.50009@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=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/11 X-Sequence-Number: 20092 On Thu, 10 Dec 2009, John R Pierce wrote: > does Connection.setReadOnly(true) block pgjdbc from automatically issuing > BEGIN;, similar to setAutoCommit(true) ? No. > if not, why not? > 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. Kris Jurka