diff options
author | Andres Freund <andres@anarazel.de> | 2025-02-11 11:39:19 -0500 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2025-02-11 12:53:40 -0500 |
commit | 740766d37cdf466438c0ccb6c4c8acaa62a7fc90 (patch) | |
tree | 62ab181e85d4a47ae4e7e79c207af2c40304ff2f /src/backend/utils/misc/guc_tables.c | |
parent | c366d2bdba7c3b9b2cca1429d4535866e231ca55 (diff) | |
download | postgresql-740766d37cdf466438c0ccb6c4c8acaa62a7fc90.tar.gz postgresql-740766d37cdf466438c0ccb6c4c8acaa62a7fc90.zip |
config: Split "Worker Processes" out of "Asynchronous Behavior"
Having all the worker related GUCs in the same section as IO controlling GUCs
doesn't really make sense. Create a separate section for them.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/x3tlw2jk5gm3r3mv47hwrshffyw7halpczkfbk3peksxds7bvc@lguk43z3bsyq
Diffstat (limited to 'src/backend/utils/misc/guc_tables.c')
-rw-r--r-- | src/backend/utils/misc/guc_tables.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index ce7534d4d23..779b6098ada 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -683,6 +683,7 @@ const char *const config_group_names[] = [RESOURCES_KERNEL] = gettext_noop("Resource Usage / Kernel Resources"), [RESOURCES_BGWRITER] = gettext_noop("Resource Usage / Background Writer"), [RESOURCES_ASYNCHRONOUS] = gettext_noop("Resource Usage / Asynchronous Behavior"), + [RESOURCES_WORKER_PROCESSES] = gettext_noop("Resource Usage / Worker Processes"), [WAL_SETTINGS] = gettext_noop("Write-Ahead Log / Settings"), [WAL_CHECKPOINTS] = gettext_noop("Write-Ahead Log / Checkpoints"), [WAL_ARCHIVING] = gettext_noop("Write-Ahead Log / Archiving"), @@ -1962,7 +1963,7 @@ struct config_bool ConfigureNamesBool[] = }, { - {"parallel_leader_participation", PGC_USERSET, RESOURCES_ASYNCHRONOUS, + {"parallel_leader_participation", PGC_USERSET, RESOURCES_WORKER_PROCESSES, gettext_noop("Controls whether Gather and Gather Merge also run subplans."), gettext_noop("Should gather nodes also run subplans or just gather tuples?"), GUC_EXPLAIN @@ -3234,7 +3235,7 @@ struct config_int ConfigureNamesInt[] = { {"max_worker_processes", PGC_POSTMASTER, - RESOURCES_ASYNCHRONOUS, + RESOURCES_WORKER_PROCESSES, gettext_noop("Maximum number of concurrent worker processes."), NULL, }, @@ -3496,7 +3497,7 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_parallel_maintenance_workers", PGC_USERSET, RESOURCES_ASYNCHRONOUS, + {"max_parallel_maintenance_workers", PGC_USERSET, RESOURCES_WORKER_PROCESSES, gettext_noop("Sets the maximum number of parallel processes per maintenance operation."), NULL }, @@ -3506,7 +3507,7 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_parallel_workers_per_gather", PGC_USERSET, RESOURCES_ASYNCHRONOUS, + {"max_parallel_workers_per_gather", PGC_USERSET, RESOURCES_WORKER_PROCESSES, gettext_noop("Sets the maximum number of parallel processes per executor node."), NULL, GUC_EXPLAIN @@ -3517,7 +3518,7 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_parallel_workers", PGC_USERSET, RESOURCES_ASYNCHRONOUS, + {"max_parallel_workers", PGC_USERSET, RESOURCES_WORKER_PROCESSES, gettext_noop("Sets the maximum number of parallel workers that can be active at one time."), NULL, GUC_EXPLAIN |