Re: BUG #6269: Anomaly detection

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Paul Stapersma <paul(dot)stapersma(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6269: Anomaly detection
Date: 2011-10-25 16:17:31
Message-ID: 4EA6E11B.50104@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2011-10-25 16:22:15 Re: auto_explain causes cluster crash if pg_ctl reload is used (not pg_ctl restart)
Previous Message Tom Lane 2011-10-25 16:10:38 Re: BUG #6269: Anomaly detection