Use the standard lock manager to establish priority order when there
Tom Lane <tgl@sss.pgh.pa.us>
Use the standard lock manager to establish priority order when there is contention for a tuple-level lock. This solves the problem of a would-be exclusive locker being starved out by an indefinite succession of share-lockers. Per recent discussion with Alvaro.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +206 −88 |
| src/backend/storage/lmgr/lmgr.c | modified | +125 −1 |
| src/include/storage/lmgr.h | modified | +18 −1 |