pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Erik Wasser <erik.wasser@iquer.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Are long term never commited SELECT statements are a problem?
Date: Thu, 21 Jul 2005 10:23:03 -0600
Message-ID: <20050721162303.GA28287@winnie.fuhr.org> (raw)
In-Reply-To: <200507211740.57999.erik.wasser@iquer.net>
References: <200507211557.58822.erik.wasser@iquer.net>
	<20050721151811.GA513@winnie.fuhr.org>
	<200507211740.57999.erik.wasser@iquer.net>

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/



view thread (7+ messages)  latest in thread

Message-ID: <20050721162303.GA28287@winnie.fuhr.org>
Permalink:  ../20050721162303.GA28287@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050721162303.GA28287@winnie.fuhr.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, erik.wasser@iquer.net
  Subject: Re: Are long term never commited SELECT statements are a problem?
  In-Reply-To: <20050721162303.GA28287@winnie.fuhr.org>

* 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