Re: Should we improve documentation on isolation levels?

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: AK <alkuzo(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Should we improve documentation on isolation levels?
Date: 2013-11-27 19:46:31
Message-ID: 1385581591.20715.YahooMailNeo@web162906.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

AK <alkuzo(at)gmail(dot)com> wrote:

> The following is not precise:
>
> 13.2.1. Read Committed Isolation Level
>
> "Also note that two successive SELECT commands can see different data, even
> though they are within a single transaction, if other transactions commit
> changes during execution of the first SELECT."
>
> I think it should be re-worded as follows
>
> "Also note that two successive SELECT commands can see different data, even
> though they are within a single transaction, if other transactions commit
> after the first SELECT starts, and before the second SELECT starts."
>
> The reason: there could be other DML running between these two SELECTs.

That's a fair point.  I'll commit something to the master branch.
I don't think this rises to the level of a documentation bug that
needs to be back-patched.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2013-11-27 19:49:01 Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag
Previous Message Boszormenyi Zoltan 2013-11-27 19:41:48 Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag