Re: Transaction isolation levels - Mailing list pgsql-general

From Tom Lane
Subject Re: Transaction isolation levels
Date
Msg-id 4773.1120923044@sss.pgh.pa.us
Whole thread Raw
In response to Re: Transaction isolation levels  (Geert Jansen <geert@boskant.nl>)
List pgsql-general
Geert Jansen <geert@boskant.nl> writes:
> For my curiosity, what is the reason that in read comitted mode MVCC can
> guarantee a consistent snapshot durign a query, while in serializable
> mode MVCC can guarantee it for a longer interval (the entire
> transaction). Are these different MVCC implementations, or is some kind
> of locking performed when executing queries in read committed mode?

It's the same implementation in either case; it's just a matter of which
"snapshot" we refer to when deciding whether recently-committed row
versions are visible to our own query.  The snapshot is basically a
list of open transactions, which are to be considered not-committed
even if they in fact commit while our query or transaction continues.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: index usage in multi-column ORDER BY
Next
From: Havasvölgyi Ottó
Date:
Subject: checkpoint segments