pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Paul Stapersma <paul.stapersma@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6269: Anomaly detection
Date: Tue, 25 Oct 2011 19:17:31 +0300
Message-ID: <4EA6E11B.50104@enterprisedb.com> (raw)
In-Reply-To: <201110250951.p9P9pWb5014484@wwwmaster.postgresql.org>
References: <201110250951.p9P9pWb5014484@wwwmaster.postgresql.org>

On 25.10.2011 12:51, Paul Stapersma wrote:
> PostgreSQL version: 8.3.3

That is a pretty old version. At least you should use the latest version 
in the 8.3 series, which is currently 8.3.16. I'm not sure if there's 
been any isolation-related bug fixes since 8.3.3, but I don't see any 
reason not to test using the latest minor version.

Even better, use the latest and greated version, 9.1.1. 9.1 is a very 
interesting release for the stuff you're doing, because it is the first 
version to implement the Serializable level correctly, which is 
different from the Snapshot Isolation we had previously. It uses a 
technique called Serializable Snapshot Isolation.

> For a project at my University, we compared PostgreSQL with MySQL's InnoDB.
> In this research, we found several cases in which anomalies where detected
> in Isolation levels that guaranteed not to have these anomalies.
>
> In short summary:
> - we detected non-repeatable reads in the repeatable read isolation level
> - we detected non-repeatable reads in the serializable isolation level
> - we detected phantoms in the serializable isolation level
> - we detected lost updates in the repeatable read isolation level
> - we detected lost updates in the serializable isolation level
>
> Furthermore, we detected differences between Read Committed and Read
> Uncommitted and differences between Serializable and Repeatable Read which
> is in contrast to the documentation.

That is all pretty hard to believe, to be honest. I'd suggest that you 
check you testing methodology. If you can provide a short self-contained 
test script to demonstrate one of those unexpected anomalies, me or 
someone else on the mailing list can take a closer look.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (14+ messages)  latest in thread

Message-ID: <4EA6E11B.50104@enterprisedb.com>
Permalink:  ../4EA6E11B.50104@enterprisedb.com/
Also on:    postgresql.org/message-id/4EA6E11B.50104@enterprisedb.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, paul.stapersma@gmail.com
  Subject: Re: BUG #6269: Anomaly detection
  In-Reply-To: <4EA6E11B.50104@enterprisedb.com>
  References: <201110250951.p9P9pWb5014484@wwwmaster.postgresql.org> <4EA6E11B.50104@enterprisedb.com>

* 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