Introduce local hash table for lock state, as per recent proposal.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1785acebf2ed14fd66955e2d9a55d77a025f418d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-08-27T17:07:42Z
Releases: 8.0.0
Introduce local hash table for lock state, as per recent proposal.
PROCLOCK structs in shared memory now have only a bitmask for held
locks, rather than counts (making them 40 bytes smaller, which is a
good thing).  Multiple locks within a transaction are counted in the
local hash table instead, and we have provision for tracking which
ResourceOwner each count belongs to.  Solves recently reported problem
with memory leakage within long transactions.

Files