Slightly reduce BufMgrLock contention

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: pgsql-patches(at)postgresql(dot)org
Subject: Slightly reduce BufMgrLock contention
Date: 2002-08-30 11:22:32
Message-ID: dmhumucjo0lgoeelfm3h2alfgvtca1q2b8@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This patch prevents btbulkdelete() from calling WriteNoReleaseBuffer()
several times for the same buffer. Thus it saves a few
LWLockAquire(BufMgrLock, LW_EXCLUSIVE) and LWLockRelease(BufMgrLock)
calls.

Maybe we do not need a BufMgrLock at all, because we have a super
exclusive lock on the buffer? I was not sure and decided to stay on
the safe side ...

Servus
Manfred

Attachment Content-Type Size
unknown_filename text/plain 966 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message John Gray 2002-08-30 12:22:56 Re: Visibility regression test
Previous Message Tom Lane 2002-08-30 05:24:41 Re: fix for palloc() of user-supplied length