Use dlist/dclist instead of PROC_QUEUE / SHM_QUEUE for heavyweight locks
Andres Freund <andres@anarazel.de>
Use dlist/dclist instead of PROC_QUEUE / SHM_QUEUE for heavyweight locks Part of a series to remove SHM_QUEUE. ilist.h style lists are more widely used and have an easier to use interface. As PROC_QUEUE is now unused, remove it. Reviewed-by: Thomas Munro <thomas.munro@gmail.com> (in an older version) Discussion: https://postgr.es/m/20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de Discussion: https://postgr.es/m/20200211042229.msv23badgqljrdg2@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/twophase.c | modified | +2 −2 |
| src/backend/storage/lmgr/deadlock.c | modified | +35 −52 |
| src/backend/storage/lmgr/lock.c | modified | +55 −100 |
| src/backend/storage/lmgr/proc.c | modified | +78 −165 |
| src/include/storage/lock.h | modified | +5 −10 |
| src/include/storage/proc.h | modified | +8 −9 |
| src/tools/pgindent/typedefs.list | modified | +0 −1 |
Discussion
- Improve heavyweight locks instead of building new lock managers? 7 messages · 2020-02-11 → 2020-04-10
- Replace PROC_QUEUE / SHM_QUEUE with ilist.h 4 messages · 2022-11-20 → 2023-01-20