summaryrefslogtreecommitdiff
path: root/sql/opt_trace.h
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2019-09-04 19:51:27 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2019-09-11 04:32:40 +0530
commit7b988e5cebf3c6979694056e474f8256b8466696 (patch)
tree618c6cff848b603b60f86149922e98ccf6a5730a /sql/opt_trace.h
parente980cf91cd01313edb659b12854c420e1b064246 (diff)
downloadmariadb-git-7b988e5cebf3c6979694056e474f8256b8466696.tar.gz
MDEV-20444: More information regarding access of a table to be printed inside the optimizer_trace
Added: 1) estimated_join_cardinality 2) best_chosen_access_method for a table 3) best_join_order
Diffstat (limited to 'sql/opt_trace.h')
-rw-r--r--sql/opt_trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/opt_trace.h b/sql/opt_trace.h
index 52318bc6b7f..6fe179d79d8 100644
--- a/sql/opt_trace.h
+++ b/sql/opt_trace.h
@@ -105,6 +105,9 @@ void opt_trace_print_expanded_query(THD *thd, SELECT_LEX *select_lex,
Json_writer_object *trace_object);
void add_table_scan_values_to_trace(THD *thd, JOIN_TAB *tab);
+void print_final_join_order(JOIN *join);
+void print_best_access_for_table(THD *thd, POSITION *pos,
+ enum join_type type);
/*
Security related (need to add a proper comment here)