aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-08-26 18:45:57 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-08-26 18:45:57 +0000
commit5d6758fd243f933c68799de44cef3cfd87b2df93 (patch)
tree59285fb9c6c859676d0f700f75d5660932be8727 /src
parent5cabcfccce4b8b826c9b30828f3012b7926a6946 (diff)
downloadpostgresql-5d6758fd243f933c68799de44cef3cfd87b2df93.tar.gz
postgresql-5d6758fd243f933c68799de44cef3cfd87b2df93.zip
Increase WIDTH_THRESHOLD from 256 to 1K. This addresses recent observation
that ANALYZE would not gather any stats for a CHAR(255) column. I still think a width threshold is appropriate for the reasons mentioned in the code, but we can loosen it at least.
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/analyze.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index 0d3173e9b3e..2d9a2daa0cb 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.44 2002/08/26 17:53:57 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.45 2002/08/26 18:45:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -56,7 +56,7 @@ typedef enum
* ignoring wide values will not affect our estimates of histogram bin
* boundaries very much.
*/
-#define WIDTH_THRESHOLD 256
+#define WIDTH_THRESHOLD 1024
/*
* We build one of these structs for each attribute (column) that is to be