Re: Documenting serializable vs snapshot isolation levels

From: "Robert Haas" <robertmhaas(at)gmail(dot)com>
To: "Gregory Stark" <stark(at)enterprisedb(dot)com>
Cc: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Documenting serializable vs snapshot isolation levels
Date: 2008-12-30 03:16:27
Message-ID: 603c8f070812291916tce34d2fqa56c442c7ea11e7c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 29, 2008 at 9:28 PM, Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
>> (3) A finer-grained approach would be to make no-effect updates to
>> rows to lock them if they are to be read for purposes of updating
>> something else in the transaction. This could have a high cost in
>> disk access and table bloat. It has the advantage of providing a
>> simple technique which, if applied consistently, doesn't require
>> knowledge of software beyond what is under development.
>
> "no-effect updates" would be just the same as SELECT FOR UPDATE

...except that SELECT FOR UPDATE won't create table bloat, or as much
I/O... I think?

> However this has the same problem that we previously discussed where someone
> can still add new records which would have changed the results of the query.

...Robert

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-12-30 04:55:02 Re: Proposed Patch to Improve Performance of Multi-BatchHash Join for Skewed Data Sets
Previous Message Gregory Stark 2008-12-30 02:28:03 Re: Documenting serializable vs snapshot isolation levels