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

Commit5d6758f

Browse files
committed
Increase WIDTH_THRESHOLD from 256 to 1K. This addresses recent observation
that ANALYZE would not gather any stats for a CHAR(255) column. I stillthink a width threshold is appropriate for the reasons mentioned in thecode, but we can loosen it at least.
1 parent5cabcfc commit5d6758f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/analyze.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.44 2002/08/2617:53:57 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.45 2002/08/2618:45:57 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -56,7 +56,7 @@ typedef enum
5656
* ignoring wide values will not affect our estimates of histogram bin
5757
* boundaries very much.
5858
*/
59-
#defineWIDTH_THRESHOLD256
59+
#defineWIDTH_THRESHOLD1024
6060

6161
/*
6262
* We build one of these structs for each attribute (column) that is to be

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp