From: Vadim B. Mikheev Date: Mon, 31 May 1999 01:48:13 +0000 (+0000) Subject: Release XactLockTable share lock immediately after this lock is acquired X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=3ac8dd7a6ca0edc4fd13372ae574d645ccb709f6;p=users%2Fbernd%2Fpostgres.git Release XactLockTable share lock immediately after this lock is acquired (no sense to hold it) or we'll be out of lock entries. Great thanks to Hiroshi Inoue. --- diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index b4b2462526..ca353c26e9 100644 --- a/src/backend/storage/lmgr/lmgr.c +++ b/src/backend/storage/lmgr/lmgr.c @@ -322,6 +322,7 @@ XactLockTableWait(TransactionId xid) tag.objId.xid = xid; LockAcquire(LockTableId, &tag, ShareLock); + LockRelease(LockTableId, &tag, ShareLock); TransactionIdFlushCache();