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: (view raw, whole thread or download thread mbox)
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)

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 ...



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-2017 The PostgreSQL Global Development Group