Hello guys, I'm writing a function that will read data from the buffer in xlog (i.e. from XLogCtl->pages and XLogCtl->xlblocks). I want to make sure that I am doing it correctly. For reading from the buffer, do I need to lock WALInsertLock or WALWriteLock? Also, can you explain a bit the usage of 'LW_SHARED'. Can we use it for read purposes?
Thanks a lot.