summaryrefslogtreecommitdiff
path: root/sql/opt_trace.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2022-04-11 17:59:36 +0300
committerSergei Petrunia <sergey@mariadb.com>2023-02-02 22:25:24 +0300
commit2387ee9b4556cf5f4730ea7033a30977273173ad (patch)
tree5c518a9ef3b9ec80c1533b371137aa9344c23f92 /sql/opt_trace.h
parent9db877c9ec6fb048e213cc824643ed7f074d9e40 (diff)
downloadmariadb-git-2387ee9b4556cf5f4730ea7033a30977273173ad.tar.gz
Added 'records_out' and join_type to POSITION
records_out is the numbers of rows expected to be accepted from a table. records_read is in contrast the number of rows that the optimizer excepts to read from the engine. This patch causes not plan changes. The differences in test results comes from renaming "records" to "records_read" and printing of record_out in the optimizer trace. Other things: - Renamed table_cond_selectivity() to table_after_join_selectivity() to make the purpose of the function more clear.
Diffstat (limited to 'sql/opt_trace.h')
-rw-r--r--sql/opt_trace.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/opt_trace.h b/sql/opt_trace.h
index 1ee23a33591..a43c1dde54b 100644
--- a/sql/opt_trace.h
+++ b/sql/opt_trace.h
@@ -109,8 +109,7 @@ void opt_trace_print_expanded_query(THD *thd, SELECT_LEX *select_lex,
void add_table_scan_values_to_trace(THD *thd, JOIN_TAB *tab);
void trace_plan_prefix(JOIN *join, uint idx, table_map join_tables);
void print_final_join_order(JOIN *join);
-void print_best_access_for_table(THD *thd, POSITION *pos,
- enum join_type type);
+void print_best_access_for_table(THD *thd, POSITION *pos);
void trace_condition(THD * thd, const char *name, const char *transform_type,
Item *item, const char *table_name= nullptr);