mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +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:
@@ -204,7 +204,7 @@ typedef struct StdRdOptions
|
||||
AutoVacOpts autovacuum; /* autovacuum-related options */
|
||||
bool user_catalog_table; /* use as an additional catalog
|
||||
* relation */
|
||||
int parallel_degree; /* max number of parallel workers */
|
||||
int parallel_workers; /* max number of parallel workers */
|
||||
} StdRdOptions;
|
||||
|
||||
#define HEAP_MIN_FILLFACTOR 10
|
||||
@@ -243,11 +243,11 @@ typedef struct StdRdOptions
|
||||
|
||||
/*
|
||||
* RelationGetParallelDegree
|
||||
* Returns the relation's parallel_degree. Note multiple eval of argument!
|
||||
* Returns the relation's parallel_workers. Note multiple eval of argument!
|
||||
*/
|
||||
#define RelationGetParallelDegree(relation, defaultpd) \
|
||||
((relation)->rd_options ? \
|
||||
((StdRdOptions *) (relation)->rd_options)->parallel_degree : (defaultpd))
|
||||
((StdRdOptions *) (relation)->rd_options)->parallel_workers : (defaultpd))
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user