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

From Michael Fuhr
Subject Re: Are long term never commited SELECT statements are a problem?
Date
Msg-id 20050721162303.GA28287@winnie.fuhr.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:
> 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?

No, it doesn't.  The quote you posted refers to the SERIALIZABLE
isolation level, but the default is READ COMMITTED.  Unless you've
changed the default (and it appears that you haven't), then
transactions that don't set an isolation level will default to READ
COMMITTED.

The following command shows what isolation level the current
transaction is using:

SHOW transaction_isolation;

Try your example again, but issue the following command in transaction 1
before doing anything else:

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Are long term never commited SELECT statements are a problem?
Next
From: "Dongsoo Yoon"
Date:
Subject: Error when using array variable