Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1ED99B5DBE3 for ; Tue, 25 Oct 2011 13:17:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 89968-05 for ; Tue, 25 Oct 2011 16:17:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og119.obsmtp.com (exprod7og119.obsmtp.com [64.18.2.16]) by mail.postgresql.org (Postfix) with ESMTP id E3006B5DBE1 for ; Tue, 25 Oct 2011 13:17:35 -0300 (ADT) Received: from mail-fx0-f46.google.com ([209.85.161.46]) (using TLSv1) by exprod7ob119.postini.com ([64.18.6.12]) with SMTP; Tue, 25 Oct 2011 09:17:36 PDT Received: by mail-fx0-f46.google.com with SMTP id n17so935640faa.5 for ; Tue, 25 Oct 2011 09:17:34 -0700 (PDT) Received: by 10.223.64.197 with SMTP id f5mr12120899fai.24.1319559453548; Tue, 25 Oct 2011 09:17:33 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id a1sm49893353fab.4.2011.10.25.09.17.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 09:17:32 -0700 (PDT) Message-ID: <4EA6E11B.50104@enterprisedb.com> Date: Tue, 25 Oct 2011 19:17:31 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Paul Stapersma CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6269: Anomaly detection References: <201110250951.p9P9pWb5014484@wwwmaster.postgresql.org> In-Reply-To: <201110250951.p9P9pWb5014484@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/235 X-Sequence-Number: 31505 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