diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-10-09 21:05:02 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-10-09 21:05:02 -0400 |
commit | 0ac5e5a7e152504c71ce2168acc9cef7fde7893c (patch) | |
tree | 9060ae6a71ae9b7ce5fda85846d3060cdc215432 /src/backend/utils/misc/guc.c | |
parent | f566515192461acd8d9c232f48ddac3fc965cfd8 (diff) | |
download | postgresql-0ac5e5a7e152504c71ce2168acc9cef7fde7893c.tar.gz postgresql-0ac5e5a7e152504c71ce2168acc9cef7fde7893c.zip |
Allow dynamic allocation of shared memory segments.
Patch by myself and Amit Kapila. Design help from Noah Misch. Review
by Andres Freund.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index ddbeb34ce72..1756b48c4fe 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -61,6 +61,7 @@ #include "replication/walreceiver.h" #include "replication/walsender.h" #include "storage/bufmgr.h" +#include "storage/dsm_impl.h" #include "storage/standby.h" #include "storage/fd.h" #include "storage/proc.h" @@ -385,6 +386,7 @@ static const struct config_enum_entry synchronous_commit_options[] = { */ extern const struct config_enum_entry wal_level_options[]; extern const struct config_enum_entry sync_method_options[]; +extern const struct config_enum_entry dynamic_shared_memory_options[]; /* * GUC option variables that are exported from this module @@ -3336,6 +3338,16 @@ static struct config_enum ConfigureNamesEnum[] = }, { + {"dynamic_shared_memory_type", PGC_POSTMASTER, RESOURCES_MEM, + gettext_noop("Selects the dynamic shared memory implementation used."), + NULL + }, + &dynamic_shared_memory_type, + DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE, dynamic_shared_memory_options, + NULL, NULL, NULL + }, + + { {"wal_sync_method", PGC_SIGHUP, WAL_SETTINGS, gettext_noop("Selects the method used for forcing WAL updates to disk."), NULL |