Re: Are long term never commited SELECT statements are a problem? - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: Are long term never commited SELECT statements are a problem?
Date
Msg-id 20050721161334.GH24366@alvh.no-ip.org
Whole thread Raw
In response to Re: Are long term never commited SELECT statements are a problem?  (Erik Wasser <erik.wasser@iquer.net>)
List pgsql-sql
On Thu, Jul 21, 2005 at 05:40:57PM +0200, Erik Wasser wrote:

> > When a transaction is on the serializable level, a SELECT query sees
> > only data committed before the transaction began; it never sees either
> > uncommitted data or changes committed during transaction execution by
> > concurrent transactions. (However, the SELECT does see the effects of
> > previous updates executed within its own transaction, even though they
> > are not yet committed.)     

> Why do I see in the first transaction data from the commited second 
> transaction? Doesn't prove that the documentation on the above URL 
> wrong?

Because it says "in the serializable level," which they acquire when you
execute "SET TRANSACTION ISOLATION LEVEL SERIALIZABLE".

-- 
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
Officer Krupke, what are we to do?
Gee, officer Krupke, Krup you! (West Side Story, "Gee, Officer Krupke")


pgsql-sql by date:

Previous
From: Erik Wasser
Date:
Subject: Re: Are long term never commited SELECT statements are a problem?
Next
From: Michael Fuhr
Date:
Subject: Re: Are long term never commited SELECT statements are a problem?