Fix obsolete comment in set_rel_size().
authorTom Lane
Fri, 24 Apr 2015 19:18:07 +0000 (15:18 -0400)
committerTom Lane
Fri, 24 Apr 2015 19:18:37 +0000 (15:18 -0400)
The cross-reference to set_append_rel_pathlist() was obsoleted by
commit e2fa76d80ba571d4de8992de6386536867250474, which split what
had been set_rel_pathlist() and child routines into two sets of
functions.  But I (tgl) evidently missed updating this comment.

Back-patch to 9.2 to avoid unnecessary divergence among branches.

Amit Langote

src/backend/optimizer/path/allpaths.c

index 085356d56f7727da9cd0f96cb483a482a1224c8d..127ce67adf5c49e59fd2096b60b6b2686171c7d6 100644 (file)
@@ -234,7 +234,7 @@ set_rel_size(PlannerInfo *root, RelOptInfo *rel,
         * We proved we don't need to scan the rel via constraint exclusion,
         * so set up a single dummy path for it.  Here we only check this for
         * regular baserels; if it's an otherrel, CE was already checked in
-        * set_append_rel_pathlist().
+        * set_append_rel_size().
         *
         * In this case, we go ahead and set up the relation's path right away
         * instead of leaving it for set_rel_pathlist to do.  This is because