diff options
author | Michael Paquier | 2021-09-06 01:59:20 +0000 |
---|---|---|
committer | Michael Paquier | 2021-09-06 01:59:20 +0000 |
commit | 0bd305ee1d427ef29f5fa4fa20567e3b3f5ff792 (patch) | |
tree | c53b52d0263dc6b6da21b3ef2db49a22e2d40ee2 /src/include | |
parent | 5fcb23c18fe408bfc6669aa5bca2d21896f9fe90 (diff) |
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
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/storage/ipc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/storage/ipc.h b/src/include/storage/ipc.h index 753a6dd4d7e..80e191d407d 100644 --- a/src/include/storage/ipc.h +++ b/src/include/storage/ipc.h @@ -77,6 +77,7 @@ extern void check_on_shmem_exit_lists_are_empty(void); /* ipci.c */ extern PGDLLIMPORT shmem_startup_hook_type shmem_startup_hook; +extern Size CalculateShmemSize(int *num_semaphores); extern void CreateSharedMemoryAndSemaphores(void); #endif /* IPC_H */ |