Re: Is replacing transactions with CTE a good idea?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Is replacing transactions with CTE a good idea?
Дата
Msg-id 20210405184131.GB12174@momjian.us
обсуждение исходный текст
Ответ на Re: Is replacing transactions with CTE a good idea?  (Dave Cramer <davecramer@postgres.rocks>)
Ответы Re: Is replacing transactions with CTE a good idea?  (Glen Huang <heyhgl@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Is replacing transactions with CTE a good idea?
Следующее
От: Michael Schanne
Дата:
Сообщение: Re: MultiXactId wraparound and last aggressive vacuum time