slru bank

2024-08-22 Thread ()
Hello all, This PostgreSQL version is 17beta2. In SlruSelectLRUPage(), Why do we need to traverse all slots to find that a page already has a buffer assigned? Why not find it from the [bankstart,bankend]? Best regards

Lock conflict

2023-03-19 Thread ()
Hello all, This PostgreSQL version is 11.9. In LockAcquireExtended(), why if lock requested conflicts with locks requested by waiters, must join wait queue. Why does the lock still check for conflict with the lock requested, rather than check for directly with conflict with the already-held lock?