Fix using too many LWLocks bug, reported by Craig Ringer

Teodor Sigaev <teodor@sigaev.ru>

Commit: 0861266bab20e12946047d9fcc806c6eab1083df
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-04-22T17:53:41Z
Releases: 8.2.8
Fix using too many LWLocks bug, reported by Craig Ringer
<craig@postnewspapers.com.au>.
It was my mistake, I missed limitation of number of held locks, now GIN doesn't
use continiuous locks, but still hold buffers pinned to prevent interference
with vacuum's deletion algorithm.

Files

PathChange+/−
src/backend/access/gin/ginget.c modified +161 −209
src/include/access/gin.h modified +8 −6