Re: locks within select

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: locks within select
Дата
Msg-id CAKFQuwYZRteawdWqqTeP9Kj8M8pvEbdiJotLDjTOgOiSAGS++g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: locks within select  (Marc Millas <marc.millas@mokadb.com>)
Список pgsql-general
On Tuesday, December 14, 2021, Marc Millas <marc.millas@mokadb.com> wrote:

So, if its not a locking scheme, what can block hundreds of transaction to get to the secondary ???

The transactions are present on the secondary.  It just realizes that applying them may cause problems (think drop table or truncate) and so it chooses not to until local queries have completed.  Since WAL is strictly linear all sessions are affected.  There is no locking needed, or IIUC even possible, and MVCC is not applicable as it only concerns itself with the behavior lf the writable primary system.

I suspect there are better attempts at describing this than my half-conscious effort here, though I’ve captured the crux of it - streaming WAL is its own unique thing.

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: Marc Millas
Дата:
Сообщение: Re: locks within select
Следующее
От: Sanjay Minni
Дата:
Сообщение: timestamp default current_timestamp not working