pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yi LIN <ylin30@cs.mcgill.ca>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: conflict txns in serialization isolation
Date: Fri, 23 Jul 2004 17:43:43 -0400
Message-ID: <28391.1090619023@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.44.0407231713100.27383-100000@willy>
References: <Pine.GSO.4.44.0407231713100.27383-100000@willy>

Yi LIN <ylin30@cs.mcgill.ca> writes:
> Read-committed is different from Snapshot in that
> Read-Committed txn will read data committed before read operation starts
> but snapshot txn will read data committed before the whole txn starts.

That's a true statement for SELECT, but a read-committed UPDATE will
in fact find and update the latest version of the row; it won't cause
changes to be lost, even if they occurred after the UPDATE statement as
a whole started.  The same is true of SELECT FOR UPDATE.

I'm not sure how that relates to your previous observations though.
Can you duplicate the apparent misbehavior in psql?  I can't.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <28391.1090619023@sss.pgh.pa.us>
Permalink:  ../28391.1090619023@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28391.1090619023@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ylin30@cs.mcgill.ca
  Subject: Re: conflict txns in serialization isolation
  In-Reply-To: <28391.1090619023@sss.pgh.pa.us>
  References: <Pine.GSO.4.44.0407231713100.27383-100000@willy> <28391.1090619023@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox