From: Michael Paquier Date: Thu, 9 Sep 2021 00:57:28 +0000 (+0900) Subject: Make shared_memory_size a preset option X-Git-Tag: REL_15_BETA1~1524 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b231596ccfc6bb6564c63a574e429765c0f775e;p=thirdparty%2Fpostgresql.git Make shared_memory_size a preset option 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 --- diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index c339acf0670..fd4ca83be17 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -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