From: Massimo Dal Zotto <dz@cs.unitn.it>
Marc G. Fournier <scrappy@hub.org>
From: Massimo Dal Zotto <dz@cs.unitn.it>
lock.patch
I have rewritten lock.c cleaning up the code and adding better
assert checking I have also added some fields to the lock and
xid tags for better support of user locks. There is also a new
function which returns an array of pids owning a lock.
I'm using this code from over six months and it works fine.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lock.c | modified | +815 −452 |
| src/backend/storage/lmgr/multi.c | modified | +20 −8 |
| src/backend/storage/lmgr/proc.c | modified | +76 −25 |
| src/include/storage/lock.h | modified | +42 −16 |
| src/include/storage/proc.h | modified | +5 −5 |