aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-01-06 23:46:06 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-01-06 23:46:06 +0000
commit82c9662378e7933114e9cb1adc252be6df658580 (patch)
tree8189400739bd807b748721c1979d59e1ce0c285c
parent17f601ecb23ff1eee6bc99c8836fe0e023620194 (diff)
downloadpostgresql-82c9662378e7933114e9cb1adc252be6df658580.tar.gz
postgresql-82c9662378e7933114e9cb1adc252be6df658580.zip
Clarify a confusing comment about MCVs vs histogram entries.
Per Nathan Boley.
-rw-r--r--src/backend/commands/analyze.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index ef10f1b2634..5f6a2c42de6 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.131 2009/01/01 17:23:37 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.132 2009/01/06 23:46:06 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2149,7 +2149,9 @@ compute_scalar_stats(VacAttrStatsP stats,
* least 2 instances in the sample. Also, we won't suppress values
* that have a frequency of at least 1/K where K is the intended
* number of histogram bins; such values might otherwise cause us to
- * emit duplicate histogram bin boundaries.
+ * emit duplicate histogram bin boundaries. (We might end up with
+ * duplicate histogram entries anyway, if the distribution is skewed;
+ * but we prefer to treat such values as MCVs if at all possible.)
*/
if (track_cnt == ndistinct && toowide_cnt == 0 &&
stats->stadistinct > 0 &&