pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Lewis <mlewis@entrata.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Serializable read only deferrable- implications
Date: Tue, 8 Mar 2022 08:27:15 -0800
Message-ID: <e4ede358-4e87-2752-c49c-00b97178f37a@aklaver.com> (raw)
In-Reply-To: <368694.1646756481@sss.pgh.pa.us>
References: <CAHOFxGrrab_d3sOWy-jZWYVf=teP+u_c2KXYaZeFTqwhOrVS=A@mail.gmail.com>
	<beefe50e38101af2b183fb7e04ddd252169b6e3e.camel@cybertec.at>
	<CAHOFxGr4g380bURCqADBfyjQR_roDxpR4w3-YtTAgACwbAnJpQ@mail.gmail.com>
	<368694.1646756481@sss.pgh.pa.us>

On 3/8/22 08:21, Tom Lane wrote:
> Michael Lewis <mlewis@entrata.com> writes:
>>> A transaction started with the first statement will not take any SI locks,
>>> nor will it ever receive a serialization error.
> 
>> What is the meaning of SI? Anything you are aware of in source code or a
>> blog post that discusses this?
> 
> There's src/backend/storage/lmgr/README-SSI, which might or might
> not be the level of detail you are looking for.

If you want to ease into the above:

https://www.postgresql.org/docs/current/mvcc-intro.html

"PostgreSQL maintains this guarantee even when providing the strictest 
level of transaction isolation through the use of an innovative 
Serializable Snapshot Isolation (SSI) level."

Then:

https://www.postgresql.org/docs/current/transaction-iso.html#XACT-SERIALIZABLE

and

https://www.postgresql.org/docs/current/applevel-consistency.html#SERIALIZABLE-CONSISTENCY

> 
> 			regards, tom lane
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (9+ messages)  latest in thread

Message-ID: <e4ede358-4e87-2752-c49c-00b97178f37a@aklaver.com>
Permalink:  ../e4ede358-4e87-2752-c49c-00b97178f37a@aklaver.com/
Also on:    postgresql.org/message-id/e4ede358-4e87-2752-c49c-00b97178f37a@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, mlewis@entrata.com, laurenz.albe@cybertec.at
  Subject: Re: Serializable read only deferrable- implications
  In-Reply-To: <e4ede358-4e87-2752-c49c-00b97178f37a@aklaver.com>
  References: <CAHOFxGrrab_d3sOWy-jZWYVf=teP+u_c2KXYaZeFTqwhOrVS=A@mail.gmail.com> <beefe50e38101af2b183fb7e04ddd252169b6e3e.camel@cybertec.at> <CAHOFxGr4g380bURCqADBfyjQR_roDxpR4w3-YtTAgACwbAnJpQ@mail.gmail.com> <368694.1646756481@sss.pgh.pa.us> <e4ede358-4e87-2752-c49c-00b97178f37a@aklaver.com>

* 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