diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-27 17:07:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-27 17:07:42 +0000 |
commit | 1785acebf2ed14fd66955e2d9a55d77a025f418d (patch) | |
tree | 0c2c3ebe3c71cebd822549fd07fcad38b0985326 /src/backend/utils/adt/arrayfuncs.c | |
parent | ef16b4e1574799b6e2aa6549a6eda5e4867675ec (diff) | |
download | postgresql-1785acebf2ed14fd66955e2d9a55d77a025f418d.tar.gz postgresql-1785acebf2ed14fd66955e2d9a55d77a025f418d.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions