Re: Serializable isolation level - Mailing list pgsql-general

From Richard Huxton
Subject Re: Serializable isolation level
Date
Msg-id 4354EB58.6020607@archonet.com
Whole thread Raw
In response to Serializable isolation level  (<sknipe@tucows.com>)
Responses Re: Serializable isolation level  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
sknipe@tucows.com wrote:
>
> I need you expert opinions on the following statement.

You have four statements here.

> The primary reason I use serialized transactions is to avoid race
> conditions.

Difficult to say why _you_ use them - they certainly can help there.
Make sure you read the bit on "true serializability" though.

 > One of postgresql's famed features is the MVCC
> (multi-version concurrency control) aka serialized transactions

Umm - no. MVCC underlies how all the transaction levels are implemented,
though you could implement them via other methods.

> which allows you to avoid using row/table level locks.

MVCC is designed to.

 > It's *supposed* to keep things moving much more
> quickly than locks allow for.

It allows reads to proceed without waiting for writes (with the
understanding that what you read may now be out of date).

Does that help at all?
--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: really thanks,Teodor Sigaev. HOW ts2 implment that
Next
From: Richard Huxton
Date:
Subject: Re: server , client encoding issue