Re: determine snapshot after obtaining locks for first statement

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Markus Wanner <markus(at)bluegap(dot)ch>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: determine snapshot after obtaining locks for first statement
Date: 2009-12-17 18:04:53
Message-ID: 1261073093.22798.28.camel@jd-desktop.unknown.charter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 2009-12-17 at 12:58 -0500, Robert Haas wrote:
> On Thu, Dec 17, 2009 at 12:51 PM, Kevin Grittner
> <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> > Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >
> >> I'm not very sure what a clearer explanation would look like
> >
> > As a stab at it, how about?:
> >
> > This behavior makes Read Committed mode unsuitable for many UPDATE
> > or DELETE commands with joins or subqueries
>
> I don't think that's any clearer, though it is more disparaging. :-)
>
> Note we also say: "The partial transaction isolation provided by Read
> Committed mode is adequate for many applications, and this mode is
> fast and simple to use; however, it is not sufficient for all cases.
> Applications that do complex queries and updates might require a more
> rigorously consistent view of the database than Read Committed mode
> provides."

What is needed here is a layman's context of what isolation modes are
good for what type of operation. Neither your explanation or Tom's is
particularly useful except to say, "Crap, I might be screwed but I don't
know if I am... how do I find out?"

Joshua D. Drake

>
> ...Robert
>

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-12-17 18:05:51 Re: determine snapshot after obtaining locks for first statement
Previous Message Robert Haas 2009-12-17 17:58:30 Re: determine snapshot after obtaining locks for first statement