Re: Independent comparison of PostgreSQL and MySQL - Mailing list pgsql-advocacy

From MARK CALLAGHAN
Subject Re: Independent comparison of PostgreSQL and MySQL
Date
Msg-id CAFbpF8NrY6ir-HboLgzu04+opfv_8qs=r0oJ6aF3v7fkbmCuHg@mail.gmail.com
Whole thread Raw
In response to Re: Independent comparison of PostgreSQL and MySQL  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: Independent comparison of PostgreSQL and MySQL
Re: Independent comparison of PostgreSQL and MySQL
List pgsql-advocacy
Where is the claim about transactions being visible before crash-safety in his thesis? I didn't find it via a quick search of the pdf.

On Wed, Oct 8, 2014 at 2:22 PM, Kevin Grittner <kgrittn@ymail.com> wrote:
Thomas Kellerer <spam_eater@gmx.net> wrote:

> There are several quirks in MySQL which might make real life
> harder than a plain feature comparison might express.
>
> One of the really annoying things is that it actually lies about
> what it is doing.

Along those lines, I remember when that in a 2009 paper on
concurrency techniques[1] Michael J. Cahill noted that the work of
a transaction in MySQL is made visible to other transactions, and
the COMMIT request (or stand-alone statement) returns to the
caller, before the work of the transaction is guaranteed to appear
if there is a crash and subsequent recovery.  Essentially, the only
mode available in MySQL was what you get with PostgreSQL if you
request synchronous_commit = off.  PostgreSQL defaults to waiting
to make the transaction visible and returning to the caller until
after it is guarateed to persist; although it gives you the option,
on a transaction-by-transaction basis, to take the faster route of
skipping that guarantee.

(Apologies if that was covered in one of the referenced links -- I
skimmed them and didn't spot this issue, but it might be there
somewhere....)

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

[1] Michael James Cahill. 2009.
    Serializable Isolation for Snapshot Databases.
    Sydney Digital Theses.
    University of Sydney, School of Information Technologies.
    http://hdl.handle.net/2123/5353


--
Sent via pgsql-advocacy mailing list (pgsql-advocacy@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-advocacy



--
Mark Callaghan
mdcallag@gmail.com

pgsql-advocacy by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Independent comparison of PostgreSQL and MySQL
Next
From: Adrian Klaver
Date:
Subject: Re: Independent comparison of PostgreSQL and MySQL