summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorunknown <sergefp@newbox.mylan>2006-07-30 00:02:42 +0400
committerunknown <sergefp@newbox.mylan>2006-07-30 00:02:42 +0400
commitefcfa5fb7cec82acddf14d10ca21569be5bf5057 (patch)
tree90debf54a344d1565ed02e6ecaa02d73b0acb757 /sql/table.h
parent21502e58f9b8f89472cb4fbb738f67ce005701b2 (diff)
parent5795a1efb07ec44fbaf23e45b02f9beb7c84808a (diff)
downloadmariadb-git-efcfa5fb7cec82acddf14d10ca21569be5bf5057.tar.gz
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into mysql.com:/home/psergey/mysql-5.1-bug14940-r4 mysql-test/r/partition_pruning.result: Auto merged mysql-test/t/partition_pruning.test: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index 71a199d946e..fad3c4b2b54 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -264,11 +264,28 @@ struct st_table {
MY_BITMAP *read_set, *write_set; /* Active column sets */
query_id_t query_id;
+ /*
+ For each key that has quick_keys.is_set(key) == TRUE: estimate of #records
+ and max #key parts that range access would use.
+ */
ha_rows quick_rows[MAX_KEY];
+
+ /* Bitmaps of key parts that =const for the entire join. */
key_part_map const_key_parts[MAX_KEY];
+
uint quick_key_parts[MAX_KEY];
uint quick_n_ranges[MAX_KEY];
+ /*
+ Estimate of number of records that satisfy SARGable part of the table
+ condition, or table->file->records if no SARGable condition could be
+ constructed.
+ This value is used by join optimizer as an estimate of number of records
+ that will pass the table condition (condition that depends on fields of
+ this table and constants)
+ */
+ ha_rows quick_condition_rows;
+
/*
If this table has TIMESTAMP field with auto-set property (pointed by
timestamp_field member) then this variable indicates during which