Re: Is replacing transactions with CTE a good idea? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Is replacing transactions with CTE a good idea?
Date
Msg-id 20210405184131.GB12174@momjian.us
Whole thread Raw
In response to Re: Is replacing transactions with CTE a good idea?  (Dave Cramer <davecramer@postgres.rocks>)
Responses Re: Is replacing transactions with CTE a good idea?
List pgsql-general
On Mon, Apr  5, 2021 at 02:32:36PM -0400, Dave Cramer wrote:
> On Mon, 5 Apr 2021 at 14:18, Bruce Momjian <bruce@momjian.us> wrote:
> I think we are in agreement. My point was that WITH queries don't change the
> isolation semantics. 

My point is that when you combine individual queries in a single WITH
query, those queries run together with snaphot behavior as if they were
in a repeatable-read multi-statement transaction.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-general by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Is replacing transactions with CTE a good idea?
Next
From: Michael Schanne
Date:
Subject: Re: MultiXactId wraparound and last aggressive vacuum time