Add support to lock manager for conditionally locking a lock (ie,
Tom Lane <tgl@sss.pgh.pa.us>
Add support to lock manager for conditionally locking a lock (ie, return without waiting if we can't get the lock immediately). Not used yet, but will be needed for concurrent VACUUM.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/userlock/README.user_locks | modified | +7 −8 |
| contrib/userlock/user_locks.c | modified | +6 −9 |
| src/backend/storage/lmgr/lmgr.c | modified | +68 −17 |
| src/backend/storage/lmgr/lock.c | modified | +17 −44 |
| src/include/storage/lmgr.h | modified | +8 −1 |
| src/include/storage/lock.h | modified | +6 −7 |