Re: some questions about fast-path-lock

2019-05-29 Thread Robert Haas
On Mon, May 27, 2019 at 2:01 AM Alex wrote: > I got some idea from the README under storage/lmgr and read some code of > LockAcquireExtended , but I still have some questions now. > > LWLockAcquire(&MyProc->backendLock, LW_EXCLUSIVE); > if (FastPathStrongRelationLocks->count[fasthashcode] != 0

some questions about fast-path-lock

2019-05-26 Thread Alex
I got some idea from the README under storage/lmgr and read some code of LockAcquireExtended , but I still have some questions now. LWLockAcquire(&MyProc->backendLock, LW_EXCLUSIVE); if (FastPathStrongRelationLocks->count[fasthashcode] != 0) acquired = false; else acquired = FastPathGra