Search Postgresql Archives

Re: locks within select

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, December 14, 2021, Marc Millas <marc.millas@xxxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux