Move the shared memory size calculation to its own function
Michael Paquier <michael@paquier.xyz>
Move the shared memory size calculation to its own function This change refactors the shared memory size calculation in CreateSharedMemoryAndSemaphores() to its own function. This is intended for use in a future change related to the setup of huge pages and shared memory with some GUCs, while useful on its own for extensions. Author: Nathan Bossart Discussion: https://postgr.es/m/F2772387-CE0F-46BF-B5F1-CC55516EB885@amazon.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/ipci.c | modified | +83 −59 |
| src/include/storage/ipc.h | modified | +1 −0 |
Discussion
- Estimating HugePages Requirements? 108 messages · 2021-06-09 → 2022-05-11