From: Kris Jurka <books@ejurka.com>
To: John R Pierce <pierce@hogranch.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connection.setReadOnly()
Date: Thu, 10 Dec 2009 19:23:44 -0500 (EST)
Message-ID: <alpine.BSO.2.00.0912101922140.16299@leary.csoft.net> (raw)
In-Reply-To: <4B219025.5070607@hogranch.com>
References: <4B21737B.50009@hogranch.com>
<alpine.BSO.2.00.0912101744080.30821@leary.csoft.net>
<4B219025.5070607@hogranch.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, pierce@hogranch.com
Subject: Re: Connection.setReadOnly()
In-Reply-To: <alpine.BSO.2.00.0912101922140.16299@leary.csoft.net>
References: <4B21737B.50009@hogranch.com> <alpine.BSO.2.00.0912101744080.30821@leary.csoft.net> <4B219025.5070607@hogranch.com> <alpine.BSO.2.00.0912101922140.16299@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox