xlog.c: WALInsertLock vs. WALWriteLock - Mailing list pgsql-hackers

From fazool mein
Subject xlog.c: WALInsertLock vs. WALWriteLock
Date
Msg-id AANLkTi=ACDiafVTNZVt4+zZ28OZmOKTcvpMeJZRg0ezw@mail.gmail.com
Whole thread Raw
Responses Re: xlog.c: WALInsertLock vs. WALWriteLock
Re: xlog.c: WALInsertLock vs. WALWriteLock
List pgsql-hackers
Hello guys,<br /><br />I'm writing a function that will read data from the buffer in xlog (i.e. from XLogCtl->pages
andXLogCtl->xlblocks). I want to make sure that I am doing it correctly.<br />For reading from the buffer, do I need
tolock WALInsertLock or WALWriteLock? Also, can you explain a bit the usage of 'LW_SHARED'. Can we use it for read
purposes?<br/><br />Thanks a lot.<br /><br /><br /> 

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Integer input functions for date and timestamp
Next
From: Robert Haas
Date:
Subject: Re: Integer input functions for date and timestamp