diff options
| author | Tom Lane | 2016-06-09 15:16:26 +0000 |
|---|---|---|
| committer | Tom Lane | 2016-06-09 15:16:26 +0000 |
| commit | e4158319f34ceb2c760761dc93d262513235c344 (patch) | |
| tree | 00ca42ac623a53cfc882f8239bff8c9764f3dc88 /src/include/utils | |
| parent | c9ce4a1c61ebf39c03885cc19fe7c32edc04a300 (diff) | |
Mop-up for parallel degree-ectomy.
Fix a couple of overlooked uses of "degree" terminology. Make the parallel
worker count selection logic in create_plain_partial_paths more robust (in
particular, it failed with max_parallel_workers_per_gather set to zero).
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/rel.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 3d628766e51..3b270b0fb6f 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -235,19 +235,20 @@ typedef struct StdRdOptions /* * RelationIsUsedAsCatalogTable * Returns whether the relation should be treated as a catalog table - * from the pov of logical decoding. Note multiple eval or argument! + * from the pov of logical decoding. Note multiple eval of argument! */ #define RelationIsUsedAsCatalogTable(relation) \ ((relation)->rd_options ? \ ((StdRdOptions *) (relation)->rd_options)->user_catalog_table : false) /* - * RelationGetParallelDegree - * Returns the relation's parallel_workers. Note multiple eval of argument! + * RelationGetParallelWorkers + * Returns the relation's parallel_workers reloption setting. + * Note multiple eval of argument! */ -#define RelationGetParallelDegree(relation, defaultpd) \ +#define RelationGetParallelWorkers(relation, defaultpw) \ ((relation)->rd_options ? \ - ((StdRdOptions *) (relation)->rd_options)->parallel_workers : (defaultpd)) + ((StdRdOptions *) (relation)->rd_options)->parallel_workers : (defaultpw)) /* |
