diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-09-08 12:02:30 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-09-08 12:02:30 +0900 |
commit | bd1788051b02cfddcd9ef0e2fd094972f372b8fd (patch) | |
tree | a0bc449c2d8a6b6e91fe96d7b2353c3d91339085 /src/backend/postmaster/postmaster.c | |
parent | fd0625c7a9c679c0c1e896014b8f49a489c3a245 (diff) | |
download | postgresql-bd1788051b02cfddcd9ef0e2fd094972f372b8fd.tar.gz postgresql-bd1788051b02cfddcd9ef0e2fd094972f372b8fd.zip |
Introduce GUC shared_memory_size
This runtime-computed GUC shows the size of the server's main shared
memory area, taking into account the amount of shared memory allocated
by extensions as this is calculated after processing
shared_preload_libraries.
Author: Nathan Bossart
Discussion: https://postgr.es/m/F2772387-CE0F-46BF-B5F1-CC55516EB885@amazon.com
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 63043ed8d1f..b2fe420c3cf 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1027,6 +1027,13 @@ PostmasterMain(int argc, char *argv[]) InitializeMaxBackends(); /* + * Now that loadable modules have had their chance to request additional + * shared memory, determine the value of any runtime-computed GUCs that + * depend on the amount of shared memory required. + */ + InitializeShmemGUCs(); + + /* * Set up shared memory and semaphores. */ reset_shared(); |