Re: transaction isolationa level - SERIALIZABLE

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Marcin Krawczyk <jankes(dot)mk(at)gmail(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: transaction isolationa level - SERIALIZABLE
Date: 2013-05-13 14:31:14
Message-ID: 5190F932.4010909@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 05/13/2013 02:22 AM, Marcin Krawczyk wrote:
> Hi list,
>
> I have some problems with SERIALIZABLE isolation level, namely my users
> are plagued with concurrency errors. As of postgres 9.1 (which I'm
> running) there has been a change to SERIALIZABLE logic, unfortunately my
> application has not been updated to work with the new logic. I don't
> have an access to it's code and the only thing I can do is to report the
> issue to the authors. But before I do it, since I don't actually
> need SERIALIZABLE for my use, is it possible to have transactions always
> run in default READ COMMITTED mode, regardless of application level SET
> SESSION CHARACTERISTICS AS TRANSACTION command ... ? (like e.g in
> postgres 8.1 where SERIALIZABLE = READ COMMITED)

I don't think so:

http://www.postgresql.org/docs/9.1/interactive/config-setting.html

"Furthermore, it is possible to assign a set of parameter settings to a
user or a database. Whenever a session is started, the default settings
for the user and database involved are loaded. The commands ALTER ROLE
and ALTER DATABASE, respectively, are used to configure these settings.
Per-database settings override anything received from the postgres
command-line or the configuration file, and in turn are overridden by
per-user settings; both are overridden by per-session settings.

>
>
> regards
> mk

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marcin Krawczyk 2013-05-13 22:25:34 Re: transaction isolationa level - SERIALIZABLE
Previous Message Marcin Krawczyk 2013-05-13 09:22:16 transaction isolationa level - SERIALIZABLE