diff options
author | Oleg Smirnov <olegs@teramind.co> | 2021-12-24 17:27:03 +0300 |
---|---|---|
committer | Oleg Smirnov <olernov@gmail.com> | 2022-01-30 15:32:49 +0700 |
commit | e7db62dc4baf346dad9b38e7c3f906d50c9921c6 (patch) | |
tree | 82a83d15a66751d7cf86fa6bb942d99e2a496b5c /sql/sql_show.h | |
parent | c9fcea14e9e1f34a97451706eac51276c85bbea7 (diff) | |
download | mariadb-git-bb-10.8-mdev27021.tar.gz |
MDEV-27021 Implement SHOW ANALYZE commandbb-10.8-mdev27021
Diffstat (limited to 'sql/sql_show.h')
-rw-r--r-- | sql/sql_show.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sql/sql_show.h b/sql/sql_show.h index 3d7a4d1146c..89fbcd1a547 100644 --- a/sql/sql_show.h +++ b/sql/sql_show.h @@ -155,28 +155,31 @@ THD *find_thread_by_id(longlong id, bool query_id= false); class select_result_explain_buffer; /* - SHOW EXPLAIN request object. + SHOW EXPLAIN/SHOW ANALYZE request object. */ class Show_explain_request : public Apc_target::Apc_call { public: - THD *target_thd; /* thd that we're running SHOW EXPLAIN for */ - THD *request_thd; /* thd that run SHOW EXPLAIN command */ + THD *target_thd; /* thd that we're running SHOW EXPLAIN/ANALYZE for */ + THD *request_thd; /* thd that run SHOW EXPLAIN/ANALYZE command */ + /* FALSE for SHOW EXPLAIN, TRUE - for SHOW ANALYZE*/ + bool is_analyze; + /* If true, there was some error when producing EXPLAIN output. */ bool failed_to_produce; - /* SHOW EXPLAIN will be stored here */ + /* SHOW EXPLAIN/ANALYZE will be stored here */ select_result_explain_buffer *explain_buf; - /* Query that we've got SHOW EXPLAIN for */ + /* Query that we've got SHOW EXPLAIN/ANALYZE for */ String query_str; - /* Overloaded virtual function */ - void call_in_target_thread(); + void call_in_target_thread() override; }; + /** Condition pushdown used for INFORMATION_SCHEMA / SHOW queries. This structure is to implement an optimization when |