Redesign the patch for allocation of shmem space and LWLocks for add-on
Tom Lane <tgl@sss.pgh.pa.us>
Redesign the patch for allocation of shmem space and LWLocks for add-on modules; the first try was not usable in EXEC_BACKEND builds (e.g., Windows). Instead, just provide some entry points to increase the allocation requests during postmaster start, and provide a dedicated LWLock that can be used to synchronize allocation operations performed by backends. Per discussion with Marc Munro.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/ipci.c | modified | +29 −21 |
| src/backend/storage/ipc/shmem.c | modified | +5 −150 |
| src/backend/storage/lmgr/lwlock.c | modified | +31 −72 |
| src/include/storage/lwlock.h | modified | +3 −2 |
| src/include/storage/pg_shmem.h | modified | +1 −8 |
| src/include/storage/shmem.h | modified | +4 −6 |