]> granicus.if.org Git - postgresql/commitdiff
Fix get_relation_info name typo'ed in a comment
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 28 Nov 2016 18:56:00 +0000 (15:56 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 28 Nov 2016 18:56:00 +0000 (15:56 -0300)
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

src/backend/optimizer/util/plancat.c
src/backend/optimizer/util/relnode.c

index ad07baa60c9ed0f6ec4a8b41c525ccbdf3455b0a..bb16c59028d304f1111e84e812a6c7776e9b582d 100644 (file)
@@ -78,6 +78,7 @@ static List *build_index_tlist(PlannerInfo *root, IndexOptInfo *index,
  *     fdwroutine      if it's a foreign table, the FDW function pointers
  *     pages           number of pages
  *     tuples          number of tuples
+ *     rel_parallel_workers user-defined number of parallel workers
  *
  * Also, add information about the relation's foreign keys to root->fkey_list.
  *
index deef5605b7dcc34d9b2cfd8608620c9fadeb24ac..d5326e6cf03e95dc136f4fd847a7d5219fd94c80 100644 (file)
@@ -126,7 +126,7 @@ build_simple_rel(PlannerInfo *root, int relid, RelOptKind reloptkind)
        rel->allvisfrac = 0;
        rel->subroot = NULL;
        rel->subplan_params = NIL;
-       rel->rel_parallel_workers = -1;         /* set up in GetRelationInfo */
+       rel->rel_parallel_workers = -1;         /* set up in get_relation_info */
        rel->serverid = InvalidOid;
        rel->userid = rte->checkAsUser;
        rel->useridiscurrent = false;