Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group