diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-04-06 12:27:15 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-04-06 12:28:50 -0300 |
commit | b1fc51a36ecdf854be9e41ffb99953c40ef96ccf (patch) | |
tree | a0ca63f53d93cfb85baf55ec2ec8e898b68e584f /src/backend/statistics/extended_stats.c | |
parent | dc0400cc501ebe839c15a387911945d1585e4787 (diff) | |
download | postgresql-b1fc51a36ecdf854be9e41ffb99953c40ef96ccf.tar.gz postgresql-b1fc51a36ecdf854be9e41ffb99953c40ef96ccf.zip |
Comment fixes for extended statistics
Clean up some code comments in new extended statistics code, from
7b504eb282.
Diffstat (limited to 'src/backend/statistics/extended_stats.c')
-rw-r--r-- | src/backend/statistics/extended_stats.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/statistics/extended_stats.c b/src/backend/statistics/extended_stats.c index 006bb897c48..4b3aa778140 100644 --- a/src/backend/statistics/extended_stats.c +++ b/src/backend/statistics/extended_stats.c @@ -408,7 +408,7 @@ multi_sort_compare_dims(int start, int end, /* * has_stats_of_kind - * Check that the list contains statistic of a given kind + * Check that the list contains statistic of a given kind */ bool has_stats_of_kind(List *stats, char requiredkind) @@ -428,8 +428,9 @@ has_stats_of_kind(List *stats, char requiredkind) /* * choose_best_statistics - * Look for statistics with the specified 'requiredkind' which have keys - * that match at least two attnums. + * Look for and return statistics with the specified 'requiredkind' which + * have keys that match at least two of the given attnums. Return NULL if + * there's no match. * * The current selection criteria is very simple - we choose the statistics * referencing the most attributes with the least keys. |