Arrange to preallocate all required space for the buffer and FSM hash
Tom Lane <tgl@sss.pgh.pa.us>
Arrange to preallocate all required space for the buffer and FSM hash tables in shared memory. This ensures that overflow of the lock table creates no long-lasting problems. Per discussion with Merlin Moncure.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/freespace/freespace.c | modified | +3 −3 |
| src/backend/storage/ipc/shmem.c | modified | +11 −2 |
| src/backend/storage/lmgr/lock.c | modified | +2 −2 |
| src/backend/utils/hash/dynahash.c | modified | +21 −6 |
| src/include/storage/shmem.h | modified | +3 −3 |
| src/include/utils/hsearch.h | modified | +2 −2 |