Make shared_memory_size a preset option
authorMichael Paquier <michael@paquier.xyz>
Thu, 9 Sep 2021 00:57:28 +0000 (09:57 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 9 Sep 2021 00:57:28 +0000 (09:57 +0900)
bd17880 set up that as a memory parameter, but the docs told a different
story.  A preset parameter is adapted here, as this option is compiled
at startup time.

Reported-by: Fujii Masao
Discussion: https://postgr.es/m/4cc5b434-b174-9aae-197b-737db6cac4e3@oss.nttdata.com

src/backend/utils/misc/guc.c

index c339acf067016f966f7330c98ec8f9d2b0489e7f..fd4ca83be17d5b80f3781cbe0d85b64d66b0c257 100644 (file)
@@ -2339,7 +2339,7 @@ static struct config_int ConfigureNamesInt[] =
        },
 
        {
-               {"shared_memory_size", PGC_INTERNAL, RESOURCES_MEM,
+               {"shared_memory_size", PGC_INTERNAL, PRESET_OPTIONS,
                        gettext_noop("Shows the size of the server's main shared memory area (rounded up to the nearest MB)."),
                        NULL,
                        GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE | GUC_UNIT_MB