mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Eliminate "parallel degree" terminology.
This terminology provoked widespread complaints. So, instead, rename the GUC max_parallel_degree to max_parallel_workers_per_gather (leaving room for a possible future GUC max_parallel_workers that acts as a system-wide limit), and rename the parallel_degree reloption to parallel_workers. Rename structure members to match. These changes create a dump/restore hazard for users of PostgreSQL 9.6beta1 who have set the reloption (or applied the GUC using ALTER USER or ALTER DATABASE).
This commit is contained in:
@@ -2648,11 +2648,11 @@ static struct config_int ConfigureNamesInt[] =
|
||||
},
|
||||
|
||||
{
|
||||
{"max_parallel_degree", PGC_USERSET, RESOURCES_ASYNCHRONOUS,
|
||||
{"max_parallel_workers_per_gather", PGC_USERSET, RESOURCES_ASYNCHRONOUS,
|
||||
gettext_noop("Sets the maximum number of parallel processes per executor node."),
|
||||
NULL
|
||||
},
|
||||
&max_parallel_degree,
|
||||
&max_parallel_workers_per_gather,
|
||||
2, 0, 1024,
|
||||
NULL, NULL, NULL
|
||||
},
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
|
||||
#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
|
||||
#max_worker_processes = 8 # (change requires restart)
|
||||
#max_parallel_degree = 2 # max number of worker processes per node
|
||||
#max_parallel_workers_per_gather = 2 # taken from max_worker_processes
|
||||
#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
|
||||
# (change requires restart)
|
||||
#backend_flush_after = 0 # 0 disables,
|
||||
|
||||
Reference in New Issue
Block a user