summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorTom Lane1999-08-01 04:54:25 +0000
committerTom Lane1999-08-01 04:54:25 +0000
commit44878506d811dcb5e7f4ea6450c9e6b8544f2651 (patch)
treec4b6c4af148bab7667b2b93bdec2f060bf638d80 /src/include/commands
parentf851c6b07deac83e03de3e77221ea595513e6f47 (diff)
First step in fixing selectivity-estimation code. eqsel and
neqsel now behave as per my suggestions in pghackers a few days ago. selectivity for < > <= >= should work OK for integral types as well, but still need work for nonintegral types. Since these routines have never actually executed before :-(, this may result in some significant changes in the optimizer's choices of execution plans. Let me know if you see any serious misbehavior. CAUTION: THESE CHANGES REQUIRE INITDB. pg_statistic table has changed.
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/vacuum.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h
index 59a72bbb15b..59a7fe4a506 100644
--- a/src/include/commands/vacuum.h
+++ b/src/include/commands/vacuum.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: vacuum.h,v 1.22 1999/07/15 15:21:03 momjian Exp $
+ * $Id: vacuum.h,v 1.23 1999/08/01 04:54:25 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -67,22 +67,23 @@ typedef struct
guess2,
max,
min;
- int16 best_len,
+ int best_len,
guess1_len,
guess2_len,
max_len,
min_len;
- int32 best_cnt,
+ long best_cnt,
guess1_cnt,
guess1_hits,
guess2_hits,
null_cnt,
- nonnull_cnt;
- int32 max_cnt,
+ nonnull_cnt,
+ max_cnt,
min_cnt;
FmgrInfo f_cmpeq,
f_cmplt,
f_cmpgt;
+ Oid op_cmplt;
regproc outfunc;
bool initialized;
} VacAttrStats;