Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82c9662

Browse files
committed
Clarify a confusing comment about MCVs vs histogram entries.
Per Nathan Boley.
1 parent17f601e commit82c9662

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/0623: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)

[8]ページ先頭

©2009-2025 Movatter.jp