Re: Concurrency - Mailing list pgsql-novice

From Tom Lane
Subject Re: Concurrency
Date
Msg-id 6329.1286916170@sss.pgh.pa.us
Whole thread Raw
In response to Concurrency  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
Responses Re: Concurrency  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
List pgsql-novice
Mladen Gogala <mladen.gogala@vmsinfo.com> writes:
> Where is the problem? The problem lies in the fact that the 2nd
> transaction should have only seen the changes committed before it has
> begun, ie, x=1.

You might want to go reread this:
http://www.postgresql.org/docs/9.0/static/transaction-iso.html#XACT-READ-COMMITTED
If you don't like that behavior, you might want SERIALIZABLE mode
instead.

            regards, tom lane

pgsql-novice by date:

Previous
From: Mladen Gogala
Date:
Subject: Concurrency
Next
From: Mladen Gogala
Date:
Subject: Re: Concurrency