Re: Overhead cost of Serializable Snapshot Isolation - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Overhead cost of Serializable Snapshot Isolation
Date
Msg-id 4E9471910200002500041E42@gw.wicourts.gov
Whole thread Raw
In response to Re: Overhead cost of Serializable Snapshot Isolation  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> wrote:
> They ask comparative questions like "What is the risk of
> upgrade?", "How much testing is required?"
> I never met a customer yet that has an automated test suite
> designed to stress the accuracy of results under concurrent
> workloads
I'll try to provide some information here to help you answer those
questions.  I hope it is helpful.
The only behavioral difference an unchanged application could see
(short of some as-yet-undiscovered bug) is that they could get more
serialization failures when using serializable isolation level than
they previously got, and that there could be a performance impact. 
It really does nothing except run exactly what serializable mode was
before, while monitoring for conditions which are present when a
race condition between transactions might cause odd results, and
generate a serialization failure as needed to prevent that.
It kind of "hangs off the side" of legacy behavior and watches
things.  No new blocking.  No new deadlocks.  No chance of results
you didn't get before.
It might also be worth reviewing this page:
http://www.postgresql.org/docs/9.1/interactive/transaction-iso.html
-Kevin


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Dumping roles improvements?
Next
From: Simon Riggs
Date:
Subject: Re: Overhead cost of Serializable Snapshot Isolation