Skip to content

Commit 82c9662

Browse files
committed
Clarify a confusing comment about MCVs vs histogram entries.
Per Nathan Boley.
1 parent 17f601e commit 82c9662

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/commands/analyze.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.131 2009/01/01 17:23:37 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.132 2009/01/06 23:46:06 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2149,7 +2149,9 @@ compute_scalar_stats(VacAttrStatsP stats,
21492149
* least 2 instances in the sample. Also, we won't suppress values
21502150
* that have a frequency of at least 1/K where K is the intended
21512151
* number of histogram bins; such values might otherwise cause us to
2152-
* emit duplicate histogram bin boundaries.
2152+
* emit duplicate histogram bin boundaries. (We might end up with
2153+
* duplicate histogram entries anyway, if the distribution is skewed;
2154+
* but we prefer to treat such values as MCVs if at all possible.)
21532155
*/
21542156
if (track_cnt == ndistinct && toowide_cnt == 0 &&
21552157
stats->stadistinct > 0 &&

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy