mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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).
This commit is contained in:
@ -128,8 +128,8 @@ get_relation_info(PlannerInfo *root, Oid relationObjectId, bool inhparent,
|
||||
estimate_rel_size(relation, rel->attr_widths - rel->min_attr,
|
||||
&rel->pages, &rel->tuples, &rel->allvisfrac);
|
||||
|
||||
/* Retrive the parallel_workers reloption, if set. */
|
||||
rel->rel_parallel_workers = RelationGetParallelDegree(relation, -1);
|
||||
/* Retrieve the parallel_workers reloption, or -1 if not set. */
|
||||
rel->rel_parallel_workers = RelationGetParallelWorkers(relation, -1);
|
||||
|
||||
/*
|
||||
* Make list of indexes. Ignore indexes on system catalogs if told to.
|
||||
|
Reference in New Issue
Block a user