]> granicus.if.org Git - postgresql/commitdiff
Fix typo in add_paths_to_append_rel()
authorStephen Frost <sfrost@snowman.net>
Wed, 14 Mar 2018 17:51:14 +0000 (13:51 -0400)
committerStephen Frost <sfrost@snowman.net>
Wed, 14 Mar 2018 17:51:14 +0000 (13:51 -0400)
The comment should have been referring to the number of workers, not the
number of paths.

Author: Ashutosh Bapat
Discussion: https://postgr.es/m/CAFjFpRcbp4702jcp387PExt3fNCt62QJN8++DQGwBhsW6wRHWA@mail.gmail.com

src/backend/optimizer/path/allpaths.c

index ea4e683abb060789fc813a58bdfd9005391c2b36..8735e29807df69f8ebac01e83934ad26626afaa0 100644 (file)
@@ -1574,7 +1574,7 @@ add_paths_to_append_rel(PlannerInfo *root, RelOptInfo *rel,
 
                /*
                 * If the use of parallel append is permitted, always request at least
-                * log2(# of children) paths.  We assume it can be useful to have
+                * log2(# of children) workers.  We assume it can be useful to have
                 * extra workers in this case because they will be spread out across
                 * the children.  The precise formula is just a guess, but we don't
                 * want to end up with a radically different answer for a table with N