From b1fc51a36ecdf854be9e41ffb99953c40ef96ccf Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 6 Apr 2017 12:27:15 -0300 Subject: Comment fixes for extended statistics Clean up some code comments in new extended statistics code, from 7b504eb282. --- src/backend/statistics/dependencies.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/backend/statistics/dependencies.c') diff --git a/src/backend/statistics/dependencies.c b/src/backend/statistics/dependencies.c index fb958e1b0a5..159ddb87233 100644 --- a/src/backend/statistics/dependencies.c +++ b/src/backend/statistics/dependencies.c @@ -900,7 +900,13 @@ find_strongest_dependency(StatisticExtInfo * stats, MVDependencies * dependencie /* * dependencies_clauselist_selectivity - * Attempt to estimate selectivity using functional dependency statistics + * Return the estimated selectivity of the given clauses using + * functional dependency statistics, or 1.0 if no useful functional + * dependency statistic exists. + * + * 'estimatedclauses' is an output argument that gets a bit set corresponding + * to the (zero-based) list index of clauses that are included in the + * estimated selectivity. * * Given equality clauses on attributes (a,b) we find the strongest dependency * between them, i.e. either (a=>b) or (b=>a). Assuming (a=>b) is the selected @@ -935,7 +941,6 @@ dependencies_clauselist_selectivity(PlannerInfo *root, AttrNumber *list_attnums; int listidx; - /* check if there's any stats that might be useful for us. */ if (!has_stats_of_kind(rel->statlist, STATS_EXT_DEPENDENCIES)) return 1.0; -- cgit v1.2.3