Re: [PATCHES] bufmgr code cleanup

2003-11-03 Thread Neil Conway
On Mon, 2003-11-03 at 10:00, Tom Lane wrote: I do not actually agree with the UnlockAndReleaseBuffer changes anyway. I think this obscures the code by making resource grabbing and resource releasing code unsymmetrical Hmm... fair enough, I see your point. In that case, should I remove the

[PATCHES] bufmgr code cleanup

2003-11-02 Thread Neil Conway
This patch cleans up some of the bufmgr code: - replace uses of LockBuffer(buf, BUFFER_LOCK_UNLOCK); ReleaseBuffer(buf); with the equivalent, but more concise: UnlockAndReleaseBuffer(buf); - analogous changes were made by replacing LockBuffer() +