Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d43ff47

Browse files
committed
Fix get_relation_info name typo'ed in a comment
Plus add a missing comment about this in get_relation_info itself. Author: Amit Langote Discussion: https://postgr.es/m/e46c0569-0449-afa0-e2fe-f3776e4b3fd5@lab.ntt.co.jp
1 parent 28735cc commit d43ff47

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/backend/optimizer/util/plancat.c

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static List *build_index_tlist(PlannerInfo *root, IndexOptInfo *index,
7878
* fdwroutine if it's a foreign table, the FDW function pointers
7979
* pages number of pages
8080
* tuples number of tuples
81+
* rel_parallel_workers user-defined number of parallel workers
8182
*
8283
* Also, add information about the relation's foreign keys to root->fkey_list.
8384
*

src/backend/optimizer/util/relnode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ build_simple_rel(PlannerInfo *root, int relid, RelOptKind reloptkind)
126126
rel->allvisfrac = 0;
127127
rel->subroot = NULL;
128128
rel->subplan_params = NIL;
129-
rel->rel_parallel_workers = -1; /* set up in GetRelationInfo */
129+
rel->rel_parallel_workers = -1; /* set up in get_relation_info */
130130
rel->serverid = InvalidOid;
131131
rel->userid = rte->checkAsUser;
132132
rel->useridiscurrent = false;

0 commit comments

Comments
 (0)