From ebb564ce5bdbb2a1cbc32a37cc2ee2eaf0a2553d Mon Sep 17 00:00:00 2001 From: Yoshinori Matsunobu Date: Fri, 20 May 2022 17:52:36 -0700 Subject: [PATCH 01/17] Setting enforce_single_del_contracts=false by default Summary: RocksDB 7.3 added a strict SingleDelete contract enforcement that does not allow to mix Delete and SingleDelete for the same key. As of now, MyRocks Compaction Filter has not complied with the new contract, even though the contract was not necessary since our Compaction Filter usage was for purging unused data. This diff sets enforce_single_del_contracts to false until we fully follow the strict SingleDelete contract. update-submodule: rocksdb Reviewed By: luqun Differential Revision: D36566118 fbshipit-source-id: 39925ada0c0b1f6db528a22d5e036f8dde15058f --- storage/rocksdb/ha_rocksdb.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/rocksdb/ha_rocksdb.cc b/storage/rocksdb/ha_rocksdb.cc index b20d62bc05f6..94a8727e620b 100644 --- a/storage/rocksdb/ha_rocksdb.cc +++ b/storage/rocksdb/ha_rocksdb.cc @@ -997,6 +997,7 @@ static std::unique_ptr rdb_init_rocksdb_db_options(void) { o->two_write_queues = true; o->manual_wal_flush = true; + o->enforce_single_del_contracts = false; return o; } From f516f1c611d64663e6ab8cd6fe1635bf43d39949 Mon Sep 17 00:00:00 2001 From: Manuel Ung Date: Tue, 24 May 2022 16:23:55 -0700 Subject: [PATCH 02/17] Fix multiquery audit logging Summary: There is a regression in 8.0 where the query sent to the audit plugin contains the whole request packet, instead of just the query currently being executed. This means that for multiqueries, the audit plugin will log the same query multiple times. The fix is to restore what was done in 5.6, and pass actual query length down to the logging code. Fixes https://bugs.mysql.com/bug.php?id=107390 Reviewed By: hermanlee Differential Revision: D36648219 fbshipit-source-id: 061e4b8c800ee23f5d5d3250d65d75987a9e47d4 --- sql/log.cc | 16 ++-------------- sql/sql_audit.cc | 19 ++++++++++++++++--- sql/sql_audit.h | 24 ++++++++++++++++++++++-- 3 files changed, 40 insertions(+), 19 deletions(-) diff --git a/sql/log.cc b/sql/log.cc index 7021b2cbb93b..8380be911554 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1693,7 +1693,8 @@ bool Query_logger::general_log_write(THD *thd, enum_server_command command, const char *query, size_t query_length) { /* Send a general log message to the audit API. */ mysql_audit_general_log(thd, command_name[(uint)command].str, - command_name[(uint)command].length); + command_name[(uint)command].length, query, + query_length); /* Do we want to log this kind of command? @@ -1728,19 +1729,6 @@ bool Query_logger::general_log_write(THD *thd, enum_server_command command, bool Query_logger::general_log_print(THD *thd, enum_server_command command, const char *format, ...) { - /* - Do we want to log this kind of command? - Is general log enabled? - Any active handlers? - */ - if (!log_command(thd, command) || !opt_general_log || - !(*general_log_handler_list)) { - /* Send a general log message to the audit API. */ - mysql_audit_general_log(thd, command_name[(uint)command].str, - command_name[(uint)command].length); - return false; - } - size_t message_buff_len = 0; char message_buff[LOG_BUFF_MAX]; diff --git a/sql/sql_audit.cc b/sql/sql_audit.cc index 147d2111e447..a1ae4cd1c128 100644 --- a/sql/sql_audit.cc +++ b/sql/sql_audit.cc @@ -363,7 +363,8 @@ class Ignore_event_error_handler : public Audit_error_handler { int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, const char *subclass_name, int error_code, - const char *msg, size_t msg_len) { + const char *msg, size_t msg_len, const char *query_str, + size_t query_len) { mysql_event_general event; DBUG_ASSERT(thd); @@ -395,8 +396,13 @@ int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, event.shard.str = shard_str.c_str(); event.shard.length = shard_str.size(); - event.general_charset = const_cast( - thd_get_audit_query(thd, &event.general_query)); + if (query_str != nullptr) { + event.general_charset = const_cast(thd->charset()); + event.general_query = {query_str, query_len}; + } else { + event.general_charset = const_cast( + thd_get_audit_query(thd, &event.general_query)); + } event.general_time = thd->query_start_in_secs(); @@ -421,6 +427,13 @@ int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, subclass_name, &event); } +int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, + const char *subclass_name, int error_code, + const char *msg, size_t msg_len) { + return mysql_audit_notify(thd, subclass, subclass_name, error_code, msg, + msg_len, nullptr, 0); +} + int mysql_audit_notify(THD *thd, mysql_event_connection_subclass_t subclass, const char *subclass_name, int errcode) { mysql_event_connection event; diff --git a/sql/sql_audit.h b/sql/sql_audit.h index 3f34b94e60e3..e15b452aaa79 100644 --- a/sql/sql_audit.h +++ b/sql/sql_audit.h @@ -83,6 +83,25 @@ void mysql_audit_enable_auditing(THD *thd); int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, const char *subclass_name, int error_code, const char *msg, size_t msg_len); + +/** + Call audit plugins of GENERAL audit class. + + @param[in] thd Current thread data. + @param[in] subclass Type of general audit event. + @param[in] subclass_name Subclass name. + @param[in] error_code Error code + @param[in] msg Message + @param[in] msg_len Message length. + @param[in] query_str Query + @param[in] query_len Query length. + + @return Value returned is not taken into consideration by the server. +*/ +int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, + const char *subclass_name, int error_code, + const char *msg, size_t msg_len, const char *query_str, + size_t query_len); /** Call audit plugins of GENERAL LOG audit class. @@ -93,9 +112,10 @@ int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass, @return Value returned is not taken into consideration by the server. */ inline static int mysql_audit_general_log(THD *thd, const char *cmd, - size_t cmdlen) { + size_t cmdlen, const char *query_str, + size_t query_len) { return mysql_audit_notify(thd, AUDIT_EVENT(MYSQL_AUDIT_GENERAL_LOG), 0, cmd, - cmdlen); + cmdlen, query_str, query_len); } /** From 6815cf6449a2287631b53155e75d3e32b52d4344 Mon Sep 17 00:00:00 2001 From: "Jupyung Lee (JP)" Date: Mon, 9 May 2022 08:35:07 -0700 Subject: [PATCH 03/17] add a test bypass rpc plugin and a new mtr test Summary: This diff will add a test bypass rpc plugin and a new mtr test for checking the result coming from bypass rpc plugin. This works the following way. (1) The test script writes queries to be replayed by the plugin in test_bypass_rpc_plugin_input.txt file, one query per line. (2) The test script then installs the test bypass rpc plugin. (3) The plugin, when initialized, opens the input file, reads each line of query, parses and converts it into myrocks_select_from_rpc format. Note that this conversion comes with many restrictions. For example, - in the where clause, "IN" operator has to come earlier than any other ">|>=|=|<|<=" operators - there shouldn't be unnecessary whitespaces - order by clause shouldn't omit its order keyword (ASC or DESC) (4) Then, the plugin calls "bypass_select()" function with the converted struct. (5) "send_row()", the callback function called by bypass engine, writes the value of each column into the output file. (6) Finally, the test script writes the output file to the result file with "cat_file", so that its result can be compared with *.result file. Reviewed By: yizhang82 Differential Revision: D36355974 fbshipit-source-id: 6b844c81d5ae627fe7a921636f91a0897ac8712c --- mysql-test/include/plugin.defs | 3 + .../suite/rocksdb/r/bypass_rpc_basic.result | 98 ++++ .../rocksdb/t/bypass_rpc_basic-master.opt | 1 + .../suite/rocksdb/t/bypass_rpc_basic.test | 52 ++ .../test_build_column_lineage_info-master.opt | 1 - plugin/test_bypass_rpc_plugin/CMakeLists.txt | 30 ++ .../test_bypass_rpc_plugin_info.cc | 483 ++++++++++++++++++ storage/rocksdb/nosql_access.cc | 2 +- 8 files changed, 668 insertions(+), 2 deletions(-) create mode 100644 mysql-test/suite/rocksdb/r/bypass_rpc_basic.result create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_basic-master.opt create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_basic.test create mode 100644 plugin/test_bypass_rpc_plugin/CMakeLists.txt create mode 100644 plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc diff --git a/mysql-test/include/plugin.defs b/mysql-test/include/plugin.defs index 6e3e2beb712c..a8a1c92270be 100644 --- a/mysql-test/include/plugin.defs +++ b/mysql-test/include/plugin.defs @@ -156,3 +156,6 @@ component_reference_cache plugin_output_directory REFERENCE_CACHE_COMPONENT # test privacy service libtest_get_column_ref_info plugin_output_directory TEST_GET_COLUMN_REF_INFO test_get_column_ref_info libtest_build_column_lineage_info plugin_output_directory TEST_BUILD_COLUMN_LINEAGE_INFO test_build_column_lineage_info + +# test bypass rpc plugin +libtest_bypass_rpc_plugin plugin_output_directory TEST_BYPASS_RPC_PLUGIN test_bypass_rpc_plugin_info diff --git a/mysql-test/suite/rocksdb/r/bypass_rpc_basic.result b/mysql-test/suite/rocksdb/r/bypass_rpc_basic.result new file mode 100644 index 000000000000..c2c3411c626d --- /dev/null +++ b/mysql-test/suite/rocksdb/r/bypass_rpc_basic.result @@ -0,0 +1,98 @@ +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME 'TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_basic-master.opt b/mysql-test/suite/rocksdb/t/bypass_rpc_basic-master.opt new file mode 100644 index 000000000000..cb00a561fc1a --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_basic-master.opt @@ -0,0 +1 @@ +$TEST_BYPASS_RPC_PLUGIN_OPT diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test b/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test new file mode 100644 index 000000000000..f3b608c3cfad --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test @@ -0,0 +1,52 @@ +--let $MYSQLD_DATADIR= `select @@datadir` +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR +--source ../include/bypass_create_table.inc + +--write_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id1=1 AND id2=2 AND link_type=3; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id1 IN (1) AND id2 IN (2) AND link_type=3; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id2 IN (2) AND id1=1 AND link_type=3; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id1 IN (1,2) AND id2 IN (2,3,4) AND link_type=3; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND time=10 ORDER BY TIME DESC LIMIT 10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND time=10 ORDER BY TIME ASC LIMIT 10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 5; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 1; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 0; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 0,10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 0,5; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 0,1; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 1,0; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 1,10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 1,5; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 1,1; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 5,10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 5,5; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 5,1; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 5,0; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 10,10; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 10,5; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 10,1; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND time>=10 ORDER BY TIME DESC LIMIT 10,0; +SELECT /*+ bypass */ id1,id2,link_type FROM test.link_table FORCE INDEX (PRIMARY) WHERE link_type=3 AND id1=1 ORDER BY id2 DESC; +SELECT /*+ bypass */ id1,id2,link_type FROM test.link_table FORCE INDEX (PRIMARY) WHERE link_type=3 AND id1=1 ORDER BY id2 ASC; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (PRIMARY) WHERE link_type=3 AND id1=1 ORDER BY id2 DESC; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (PRIMARY) WHERE link_type=3 AND id1=1 ORDER BY id2 ASC; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id1_type=1; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id2 IN (1,2,3) AND id1=1 AND link_type=3 ORDER BY link_type ASC, id1 ASC, id2 ASC; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM test.link_table WHERE id2 IN (1,2,3,4,5) AND id1=1 AND link_type=3 ORDER BY link_type ASC, id1 ASC, id2 ASC; +EOF + +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +eval INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME '$TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; + +--diff_files $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result + +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt + +--source ../include/bypass_drop_table.inc diff --git a/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt b/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt index c999ac76676a..e69de29bb2d1 100644 --- a/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt +++ b/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt @@ -1 +0,0 @@ -$TEST_BUILD_COLUMN_LINEAGE_INFO_OPT diff --git a/plugin/test_bypass_rpc_plugin/CMakeLists.txt b/plugin/test_bypass_rpc_plugin/CMakeLists.txt new file mode 100644 index 000000000000..b8e6e6a8128a --- /dev/null +++ b/plugin/test_bypass_rpc_plugin/CMakeLists.txt @@ -0,0 +1,30 @@ +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License, version 2.0, +# as published by the Free Software Foundation. +# +# This program is also distributed with certain software (including +# but not limited to OpenSSL) that is licensed under separate terms, +# as designated in a particular file or component or in included license +# documentation. The authors of MySQL hereby grant you an additional +# permission to link the program and your derivative works with the +# separately licensed software that they have included with MySQL. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License, version 2.0, for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# Test bypass rpc plugin + +MYSQL_ADD_PLUGIN(test_bypass_rpc_plugin_info + test_bypass_rpc_plugin_info.cc + MODULE_ONLY + MODULE_OUTPUT_NAME "libtest_bypass_rpc_plugin" + TEST_ONLY +) diff --git a/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc b/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc new file mode 100644 index 000000000000..c52034122b14 --- /dev/null +++ b/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc @@ -0,0 +1,483 @@ +/* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License, version 2.0, + as published by the Free Software Foundation. + + This program is also distributed with certain software (including + but not limited to OpenSSL) that is licensed under separate terms, + as designated in a particular file or component or in included license + documentation. The authors of MySQL hereby grant you an additional + permission to link the program and your derivative works with the + separately licensed software that they have included with MySQL. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License, version 2.0, for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include "m_string.h" +#include "my_inttypes.h" +#include "my_io.h" +#include "my_sys.h" + +#define RPC_MAX_QUERY_LENGTH 1000 +#define MAX_STRING_LENGTH 1000 + +struct test_thread_context { + my_thread_handle thread; + void *p; + bool thread_finished; + void (*test_function)(void *); +}; + +static const char *log_filename_sql = "test_bypass_rpc_plugin_sql.result"; +static const char *log_filename_rpc = "test_bypass_rpc_plugin_rpc.result"; +static const char *input_filename = "test_bypass_rpc_plugin_input.txt"; +FILE *outfile_rpc, *outfile_sql; + +static void *test_sql_threaded_wrapper(void *param) { + struct test_thread_context *context = (struct test_thread_context *)param; + if (srv_session_init_thread(context->p)) + fprintf(outfile_rpc, "srv_session_init_thread failed."); + + context->test_function(context->p); + srv_session_deinit_thread(); + + context->thread_finished = true; + return nullptr; +} + +static std::vector splitString(const std::string &s) { + std::vector v; + + std::stringstream ss(s); + while (ss.good()) { + std::string substr; + getline(ss, substr, ','); + v.push_back(std::move(substr)); + } + return v; +} + +static void fillFields(myrocks_select_from_rpc ¶m, std::string &fields) { + if (fields == "*") { + // select all, just empty columns field + return; + } + param.columns = splitString(fields); +} + +static void fillTable(myrocks_select_from_rpc ¶m, std::string &table) { + param.table_name = table; +} + +static void fillDbname(myrocks_select_from_rpc ¶m, std::string &dbname) { + param.db_name = dbname; +} + +static myrocks_where_item::where_op convertToWhereOp(std::string &op) { + if (op == "=") return myrocks_where_item::where_op::EQ; + if (op == "<") return myrocks_where_item::where_op::LT; + if (op == ">") return myrocks_where_item::where_op::GT; + if (op == "<=") return myrocks_where_item::where_op::LE; + if (op == ">=") return myrocks_where_item::where_op::GE; + return myrocks_where_item::where_op::EQ; +} + +static void send_row(void * /* unused */, myrocks_columns *values, + uint64_t num_columns) { + for (uint64_t i = 0; i < num_columns; ++i) { + auto &column = values->at(i); + if (!column.isNull) { + switch (column.type) { + case myrocks_value_type::BOOL: { + fprintf(outfile_rpc, "%d ", column.boolVal); + break; + } + case myrocks_value_type::UNSIGNED_INT: { + fprintf(outfile_rpc, "%lu ", column.i64Val); + break; + } + case myrocks_value_type::SIGNED_INT: { + fprintf(outfile_rpc, "%ld ", column.signed_i64Val); + break; + } + case myrocks_value_type::DOUBLE: { + fprintf(outfile_rpc, "%f ", column.doubleVal); + break; + } + case myrocks_value_type::STRING: { + std::string str(reinterpret_cast(column.stringVal), + column.length); + fprintf(outfile_rpc, "%s ", str.c_str()); + break; + } + default: { + // we don't throw exception here because mysql will continue + // calling send_row() function until processing the query ends + fprintf(outfile_rpc, "null "); + } + } + } + } + fprintf(outfile_rpc, "\n"); +} + +static int sql_start_result_metadata(void *, uint, uint, const CHARSET_INFO *) { + DBUG_TRACE; + return false; +} + +static int sql_field_metadata(void *, struct st_send_field *, + const CHARSET_INFO *) { + DBUG_TRACE; + return false; +} + +static int sql_end_result_metadata(void *, uint, uint) { + DBUG_TRACE; + return false; +} + +static int sql_start_row(void *) { + DBUG_TRACE; + return false; +} + +static int sql_end_row(void *) { + DBUG_TRACE; + fprintf(outfile_sql, "\n"); + return false; +} + +static void sql_abort_row(void *) { DBUG_TRACE; } + +static ulong sql_get_client_capabilities(void *) { + DBUG_TRACE; + return 0; +} + +static int sql_get_null(void *) { + DBUG_TRACE; + return false; +} + +static int sql_get_integer(void *, longlong) { + DBUG_TRACE; + return false; +} + +static int sql_get_longlong(void *, longlong, uint) { + DBUG_TRACE; + return false; +} + +static int sql_get_decimal(void *, const decimal_t *) { + DBUG_TRACE; + return false; +} + +static int sql_get_double(void *, double, uint32) { + DBUG_TRACE; + return false; +} + +static int sql_get_date(void *, const MYSQL_TIME *) { + DBUG_TRACE; + return false; +} + +static int sql_get_time(void *, const MYSQL_TIME *, uint) { + DBUG_TRACE; + return false; +} + +static int sql_get_datetime(void *, const MYSQL_TIME *, uint) { + DBUG_TRACE; + return false; +} + +static int sql_get_string(void *, const char *const value, size_t length, + const CHARSET_INFO *const) { + DBUG_TRACE; + char tmp[MAX_STRING_LENGTH]; + auto len = std::min((int)length, MAX_STRING_LENGTH-1); + strncpy(tmp, value, len); + tmp[len] = '\0'; + fprintf(outfile_sql, "%s ", tmp); + return false; +} + +const struct st_command_service_cbs sql_cbs = { + sql_start_result_metadata, + sql_field_metadata, + sql_end_result_metadata, + sql_start_row, + sql_end_row, + sql_abort_row, + sql_get_client_capabilities, + sql_get_null, + sql_get_integer, + sql_get_longlong, + sql_get_decimal, + sql_get_double, + sql_get_date, + sql_get_time, + sql_get_datetime, + sql_get_string, + nullptr, // sql_handle_ok, + nullptr, // sql_handle_error, + nullptr, // sql_shutdown, + nullptr, +}; + +static void test_in_spawned_thread(void *p, void (*test_function)(void *)) { + my_thread_attr_t attr; /* Thread attributes */ + my_thread_attr_init(&attr); + (void)my_thread_attr_setdetachstate(&attr, MY_THREAD_CREATE_JOINABLE); + + struct test_thread_context context; + + context.p = p; + context.thread_finished = false; + context.test_function = test_function; + + /* now create the thread and call test_session within the thread. */ + if (my_thread_create(&(context.thread), &attr, test_sql_threaded_wrapper, + &context) != 0) + fprintf(outfile_rpc, "Could not create test session thread"); + else + my_thread_join(&context.thread, nullptr); +} + +static void fill_table_and_columns(myrocks_select_from_rpc ¶m, + std::string &query) { + std::regex r( + R"(SELECT \/\*\+ bypass \*\/ ((,?\S+){1,}) FROM ([^. ]+)\.([^. ]+))"); + std::smatch m; + if (regex_search(query, m, r)) { + std::string columns(m[1]), dbname(m[3]), table(m[4]); + fillFields(param, columns); + fillTable(param, table); + fillDbname(param, dbname); + query = m.suffix(); + return; + } + query.clear(); // indicating that the query is not supported +} + +static void fill_force_index(myrocks_select_from_rpc ¶m, + std::string &query) { + std::regex r(R"(FORCE INDEX \((\S+)\))"); + std::smatch m; + if (regex_search(query, m, r)) { + std::string index(m[1]); + param.force_index = std::move(index); + query = m.suffix(); + } +} + +static void fill_order_by(myrocks_select_from_rpc ¶m, std::string &query) { + std::regex r(R"((\S+) (DESC|ASC))"); + std::smatch m; + while (regex_search(query, m, r)) { + std::string column(m[1]), order(m[2]); + myrocks_order_by_item oitem; + oitem.column = std::move(column); + if (order == "DESC") { + oitem.op = myrocks_order_by_item::order_by_op::DESC; + } else { + oitem.op = myrocks_order_by_item::order_by_op::ASC; + } + param.order_by.push_back(std::move(oitem)); + query = m.suffix(); + } +} + +static void fill_where_in(myrocks_select_from_rpc ¶m, std::string &query) { + std::regex r(R"((\S+) IN \(((,?\d+){1,})\))"); + std::smatch m; + while (regex_search(query, m, r)) { + std::string name(m[1]), input_values(m[2]); + auto idx = 0; + auto values = splitString(input_values); + myrocks_where_in_item witem; + witem.column = std::move(name); + witem.num_values = values.size(); + witem.more_values = nullptr; + if (witem.num_values > MAX_VALUES_PER_RPC_WHERE_ITEM) { + witem.more_values = new myrocks_column_cond_value[values.size()]; + for (const auto &value : values) { + myrocks_column_cond_value cond_val; + cond_val.type = myrocks_value_type::UNSIGNED_INT; + cond_val.i64Val = stol(value); + witem.more_values[idx++] = std::move(cond_val); + } + } else { + for (const auto &value : values) { + myrocks_column_cond_value cond_val; + cond_val.type = myrocks_value_type::UNSIGNED_INT; + cond_val.i64Val = stol(value); + witem.values[idx++] = std::move(cond_val); + } + } + param.where_in.push_back(std::move(witem)); + query = m.suffix(); + } +} + +static void fill_where(myrocks_select_from_rpc ¶m, std::string &query) { + std::regex r(R"(([a-zA-Z0-9_]{1,})(>|=|<|>=|<=)(\d+))"); + std::smatch m; + while (regex_search(query, m, r)) { + std::string name(m[1]), op(m[2]), val(m[3]); + myrocks_column_cond_value cond_val; + cond_val.type = myrocks_value_type::UNSIGNED_INT; + cond_val.i64Val = stol(val); + myrocks_where_item witem = {.column = std::move(name), + .op = convertToWhereOp(op), + .value = std::move(cond_val)}; + param.where.push_back(std::move(witem)); + query = m.suffix(); + } +} + +static void fill_limit(myrocks_select_from_rpc ¶m, std::string &query) { + std::regex r1(R"(LIMIT (\d+),(\d+))"), r2(R"(LIMIT (\d+))"); + std::smatch m; + if (regex_search(query, m, r1)) { + std::string offset(m[1]), limit(m[2]); + param.limit_offset = stol(offset); + param.limit = stol(limit); + query = m.suffix(); + } else if (regex_search(query, m, r2)) { + std::string limit(m[1]); + param.limit_offset = 0; + param.limit = stol(limit); + query = m.suffix(); + } else { + // bypass engine interprets this value as having no limit + param.limit = std::numeric_limits::max(); + param.limit_offset = 0; + } +} + +static void test_sql() { + void *plugin_ctx = nullptr; + MYSQL_SESSION st_session = srv_session_open(NULL, plugin_ctx); + if (!st_session) { + fprintf(outfile_sql, "error in opening srv_session\n"); + return; + } + + FILE *infile = my_fopen(input_filename, O_RDONLY, MYF(0)); + if (infile == nullptr) { + fprintf(outfile_sql, "error in opening input file: %s\n", input_filename); + return; + } + char line_buffer[RPC_MAX_QUERY_LENGTH]; + while (fgets(line_buffer, RPC_MAX_QUERY_LENGTH, infile)) { + std::string query_str(line_buffer); + fprintf(outfile_sql, "%s", query_str.c_str()); + COM_DATA cmd; + memset(&cmd, 0, sizeof(cmd)); + cmd.com_query.query = query_str.c_str(); + cmd.com_query.length = query_str.size(); + bool fail = command_service_run_command( + st_session, COM_QUERY, &cmd, &my_charset_utf8_general_ci, &sql_cbs, + CS_TEXT_REPRESENTATION, nullptr); + if (fail) { + fprintf(outfile_sql, "error in running cmd: %d\n", fail); + return; + } + } + my_fclose(infile, MYF(0)); +} + +static void test_rpc(void *) { + FILE *infile = my_fopen(input_filename, O_RDONLY, MYF(0)); + if (infile == nullptr) { + fprintf(outfile_rpc, "error in opening input file: %s\n", input_filename); + return; + } + + char line_buffer[RPC_MAX_QUERY_LENGTH]; + while (fgets(line_buffer, RPC_MAX_QUERY_LENGTH, infile)) { + std::string query_str(line_buffer); + fprintf(outfile_rpc, "%s", query_str.c_str()); + + myrocks_select_from_rpc param; + param.send_row = send_row; + + fill_table_and_columns(param, query_str); + if (query_str.empty()) continue; + fill_force_index(param, query_str); + fill_where_in(param, query_str); + fill_where(param, query_str); + fill_order_by(param, query_str); + fill_limit(param, query_str); + + bypass_select(¶m); + + // if allocated, more_values needs to be deallocated + for (auto &witem : param.where_in) { + if (witem.more_values) { + delete[] witem.more_values; + } + } + } + my_fclose(infile, MYF(0)); +} + +static int test_bypass_rpc_plugin_init(void *p) { + DBUG_TRACE; + unlink(log_filename_sql); + unlink(log_filename_rpc); + outfile_sql = my_fopen(log_filename_sql, O_CREAT | O_RDWR, MYF(0)); + outfile_rpc = my_fopen(log_filename_rpc, O_CREAT | O_RDWR, MYF(0)); + test_sql(); + test_in_spawned_thread(p, test_rpc); + return 0; +} + +static int test_bypass_rpc_plugin_deinit(void *) { + DBUG_TRACE; + my_fclose(outfile_rpc, MYF(0)); + my_fclose(outfile_sql, MYF(0)); + return 0; +} + +/* Mandatory structure describing the properties of the plugin. */ +static struct st_mysql_daemon test_bypass_rpc_plugin = { + MYSQL_DAEMON_INTERFACE_VERSION}; + +mysql_declare_plugin(test_daemon){ + MYSQL_DAEMON_PLUGIN, + &test_bypass_rpc_plugin, + "test_bypass_rpc_plugin_info", + "MySQL Eng", + "Test bypass rpc plugin info", + PLUGIN_LICENSE_GPL, + test_bypass_rpc_plugin_init, /* Plugin Init */ + nullptr, /* Plugin Check uninstall */ + test_bypass_rpc_plugin_deinit, /* Plugin Deinit */ + 0x0100 /* 1.0 */, + nullptr, /* status variables */ + nullptr, /* system variables */ + nullptr, /* config options */ + 0, /* flags */ +} mysql_declare_plugin_end; diff --git a/storage/rocksdb/nosql_access.cc b/storage/rocksdb/nosql_access.cc index c2d09ca846f9..f3e3cc481940 100644 --- a/storage/rocksdb/nosql_access.cc +++ b/storage/rocksdb/nosql_access.cc @@ -1224,7 +1224,7 @@ class rpc_select_parser : public base_select_parser { auto value_type = more_values ? item.more_values[i].type : item.values[i].type; if (desired_type != value_type) { - m_error_msg = "Type does not match in where clause"; + m_error_msg = "Type does not match in where_in clause"; return true; } } From 38256b2661fecd6452b1f644f937c938cf1db965 Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 1 Jun 2022 14:42:57 -0700 Subject: [PATCH 04/17] Changing raft WAL dir to datadir so it does not conflict with raft log dir Summary: When log and wal dir are pointing at the same dir the event logger framework can end up creating some dirs in the same path even before raft is initialized. When raft is inited it sees that the dir is not empty so it assumes that there is an existing FS and fails while trying to read it. Reviewed By: yichenshen Differential Revision: D36832721 fbshipit-source-id: 1ea536347398fb64de4d5991d000cc46d2d59eac --- mysql-test/lib/My/ConfigFactory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/lib/My/ConfigFactory.pm b/mysql-test/lib/My/ConfigFactory.pm index 9c66ee98f4b7..5174987baf91 100644 --- a/mysql-test/lib/My/ConfigFactory.pm +++ b/mysql-test/lib/My/ConfigFactory.pm @@ -363,7 +363,7 @@ my @mysqld_rules = ( { 'secure-file-priv' => sub { return shift->{ARGS}->{vardir}; } }, { 'loose-rpl_raft_log_dir' => \&fix_tmpdir }, - { 'loose-rpl_raft_wal_dir' => \&fix_tmpdir }, + { 'loose-rpl_raft_wal_dir' => \&fix_datadir }, ); if (IS_WINDOWS) { From 3d0f1c2a855a3dfca6d9854b0df6e4245e643e9c Mon Sep 17 00:00:00 2001 From: Shivam Verma Date: Thu, 26 May 2022 16:52:30 -0700 Subject: [PATCH 05/17] changes to optimize thread id system call Summary: Added changes so that we can pass in the thread_id directly rather than having to make a system call. Reviewed By: george-reynya Differential Revision: D36727300 fbshipit-source-id: 2f418eeca8ea6b522b813274fbd9e0af98d2dbc8 --- include/mysql/thread_pool_priv.h | 1 + sql/sql_class.cc | 9 +++++++-- sql/sql_class.h | 2 +- sql/sql_thd_api.cc | 9 +++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/include/mysql/thread_pool_priv.h b/include/mysql/thread_pool_priv.h index 982f2e223187..b49752df79cf 100644 --- a/include/mysql/thread_pool_priv.h +++ b/include/mysql/thread_pool_priv.h @@ -115,6 +115,7 @@ void thd_set_not_killable(THD *thd); ulong thd_get_net_wait_timeout(THD *thd); my_socket thd_get_fd(THD *thd); void thd_store_globals(THD *thd); +void thd_store_globals(THD *thd, pid_t id); bool thd_check_connection_admin_privilege(THD *thd); /* diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 3c487fc3a571..dc35da60de07 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1676,7 +1676,7 @@ bool THD::kill_shared_lock(MDL_context_owner *ctx_in_use) { (*THR_MALLOC)->Alloc() and the structure for the net buffer */ -void THD::store_globals() { +void THD::store_globals(pid_t id) { /* Assert that thread_stack is initialized: it's necessary to be able to track stack overrun. @@ -1702,7 +1702,12 @@ void THD::store_globals() { #endif real_id = my_thread_self(); // For debugging - capture_system_thread_id(); + // Expensive call that can be optimized. + if (!id) { + capture_system_thread_id(); + } else { + m_system_thread_id = id; + } } /* diff --git a/sql/sql_class.h b/sql/sql_class.h index db8dcd9ead86..95698dbc9534 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -3052,7 +3052,7 @@ class THD : public MDL_context_owner, void init_query_mem_roots(); void cleanup_connection(void); void cleanup_after_query(); - void store_globals(); + void store_globals(pid_t id = 0); void restore_globals(); inline void set_active_vio(Vio *vio) { diff --git a/sql/sql_thd_api.cc b/sql/sql_thd_api.cc index 676c28832dcf..8da1900f50fb 100644 --- a/sql/sql_thd_api.cc +++ b/sql/sql_thd_api.cc @@ -271,6 +271,15 @@ my_socket thd_get_fd(THD *thd) { void thd_store_globals(THD *thd) { thd->store_globals(); } +/** + Set thread specific environment required for thd cleanup in thread pool. + + @param thd THD object + @param id Thread id +*/ + +void thd_store_globals(THD *thd, pid_t id) { thd->store_globals(id); } + /** Get thread attributes for connection threads From 80ba30eb9dcfc8747cc2dbf393998487dbcb7037 Mon Sep 17 00:00:00 2001 From: Luqun Lou Date: Mon, 25 Apr 2022 22:09:17 -0700 Subject: [PATCH 06/17] read instant column default value data Summary: Enable read default value from DD data for instant columns. During read path, instant column and non-instant column use same decoders to read the rocksdb data, The only difference for instant column is that if decoder reach end of rocksdb value slice and there are still some instant fields data aren't filled, it will fetch default data stored in m_encoder_arr[i] which contains default value for instant column. Details: - add three new fields into Rdb_field_encoder: - m_is_instant_field: whether the field/column is instant - m_instant_default_value: default value for instant field/column - m_instant_default_value_len: default value length for instant field/column - add DD:Table argument for Rdb_converter::setup_field_encoders to setup instant columns/fields - Update Rdb_value_field_iterator::next to support instant cols LIMITATION: - Don't support partition table - Don't support add columns which will cause null bit flag change Reviewed By: yizhang82 Differential Revision: D35919716 fbshipit-source-id: 7eba6793b1ee24a4ebf25de384ec2bef3309693b --- .../rocksdb/r/instant_add_column_basic.result | 1521 +++++++++++++++++ .../r/instant_add_column_clear_debug.result | 51 + .../r/instant_add_column_dd_debug.result | 40 +- .../instant_add_column_intrinsic_table.result | 89 + .../rocksdb/t/instant_add_column_basic.test | 1254 ++++++++++++++ .../t/instant_add_column_clear_debug.test | 49 + .../t/instant_add_column_dd_debug.test | 5 +- .../t/instant_add_column_intrinsic_table.cnf | 12 + .../t/instant_add_column_intrinsic_table.test | 70 + sql/partitioning/partition_base.cc | 5 + storage/rocksdb/ha_rocksdb.cc | 73 +- storage/rocksdb/ha_rocksdb.h | 1 + storage/rocksdb/nosql_access.cc | 19 +- storage/rocksdb/rdb_converter.cc | 122 +- storage/rocksdb/rdb_converter.h | 6 +- storage/rocksdb/rdb_datadic.h | 5 +- storage/rocksdb/rdb_iterator.cc | 4 +- storage/rocksdb/rdb_iterator.h | 3 +- storage/rocksdb/sql_dd.cc | 83 +- storage/rocksdb/sql_dd.h | 39 +- 20 files changed, 3339 insertions(+), 112 deletions(-) create mode 100644 mysql-test/suite/rocksdb/r/instant_add_column_basic.result create mode 100644 mysql-test/suite/rocksdb/r/instant_add_column_clear_debug.result create mode 100644 mysql-test/suite/rocksdb/r/instant_add_column_intrinsic_table.result create mode 100644 mysql-test/suite/rocksdb/t/instant_add_column_basic.test create mode 100644 mysql-test/suite/rocksdb/t/instant_add_column_clear_debug.test create mode 100644 mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.cnf create mode 100644 mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.test diff --git a/mysql-test/suite/rocksdb/r/instant_add_column_basic.result b/mysql-test/suite/rocksdb/r/instant_add_column_basic.result new file mode 100644 index 000000000000..9e17c22b88a1 --- /dev/null +++ b/mysql-test/suite/rocksdb/r/instant_add_column_basic.result @@ -0,0 +1,1521 @@ +set @saved_rocksd_instant_ddl=@@global.rocksdb_disable_instant_ddl; +set global rocksdb_disable_instant_ddl = false; +# +# Scenario 1: +# Create a small table, and add all kinds of new columns and verify +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 INT, ALGORITHM=INSTANT; +INSERT INTO t1(a, c1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE c1 IS NULL; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 1; +c1 +1 +ALTER TABLE t1 ADD COLUMN c2 INT NOT NULL DEFAULT 10; +INSERT INTO t1(a, c2) VALUES(0, 11); +SELECT count(*) = max(a) FROM t1 WHERE c2 = 10; +count(*) = max(a) +1 +SELECT c2 FROM t1 WHERE c2 = 11; +c2 +11 +ALTER TABLE t1 ADD COLUMN d1 BIGINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, d1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE d1 IS NULL; +count(*) = max(a) +1 +SELECT d1 FROM t1 WHERE d1 = 1; +d1 +1 +ALTER TABLE t1 ADD COLUMN d2 BIGINT NOT NULL DEFAULT 1234567890; +INSERT INTO t1(a, d2) VALUES(0, 1234); +SELECT count(*) = max(a) FROM t1 WHERE d2 = 1234567890; +count(*) = max(a) +1 +SELECT d2 FROM t1 WHERE d2 = 1234; +d2 +1234 +ALTER TABLE t1 ADD COLUMN e1 SMALLINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, e1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE e1 IS NULL; +count(*) = max(a) +1 +SELECT e1 FROM t1 WHERE e1 = 1; +e1 +1 +ALTER TABLE t1 ADD COLUMN e2 SMALLINT NOT NULL DEFAULT 10; +INSERT INTO t1(a, e2) VALUES(0, 11); +SELECT count(*) = max(a) FROM t1 WHERE e2 = 10; +count(*) = max(a) +1 +SELECT e2 FROM t1 WHERE e2 = 11; +e2 +11 +ALTER TABLE t1 ADD COLUMN f1 TINYINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, f1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE f1 IS NULL; +count(*) = max(a) +1 +SELECT f1 FROM t1 WHERE f1 = 1; +f1 +1 +ALTER TABLE t1 ADD COLUMN f2 TINYINT NOT NULL DEFAULT 123; +INSERT INTO t1(a, f2) VALUES(0, 12); +SELECT count(*) = max(a) FROM t1 WHERE f2 = 123; +count(*) = max(a) +1 +SELECT f2 FROM t1 WHERE f2 = 12; +f2 +12 +ALTER TABLE t1 ADD COLUMN g1 MEDIUMINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, g1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE g1 IS NULL; +count(*) = max(a) +1 +SELECT g1 FROM t1 WHERE g1 = 1; +g1 +1 +ALTER TABLE t1 ADD COLUMN g2 MEDIUMINT NOT NULL DEFAULT 12345; +INSERT INTO t1(a, g2) VALUES(0, 1234); +SELECT count(*) = max(a) FROM t1 WHERE g2 = 12345; +count(*) = max(a) +1 +SELECT g2 FROM t1 WHERE g2 = 1234; +g2 +1234 +ALTER TABLE t1 ADD COLUMN h1 FLOAT, ALGORITHM=INSTANT; +INSERT INTO t1(a, h1) VALUES(0, 1.0); +SELECT count(*) = max(a) FROM t1 WHERE h1 IS NULL; +count(*) = max(a) +1 +SELECT h1 FROM t1 WHERE h1 = 1; +h1 +1 +ALTER TABLE t1 ADD COLUMN h2 FLOAT NOT NULL DEFAULT 12.34; +INSERT INTO t1(a, h2) VALUES(0, 1.234); +SELECT count(*) = max(a) FROM t1 WHERE h2 = 12.34; +count(*) = max(a) +NULL +SELECT h2 FROM t1 WHERE h2 = 1.234; +h2 +ALTER TABLE t1 ADD COLUMN h3 FLOAT DEFAULT 56.78, ADD COLUMN h4 FLOAT DEFAULT 99.99, ALGORITHM=COPY; +ALTER TABLE t1 ADD COLUMN i1 DECIMAL(5, 2), ADD COLUMN i2 double, ALGORITHM=INSTANT; +INSERT INTO t1(a, i1, i2) VALUES(0, 10.10, 20.20); +SELECT count(*) = max(a) FROM t1 WHERE i1 IS NULL; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE i2 IS NULL; +count(*) = max(a) +1 +SELECT i1 FROM t1 WHERE i1 = 10.10; +i1 +10.10 +SELECT i2 FROM t1 WHERE i2 = 20.20; +i2 +20.2 +ALTER TABLE t1 ADD COLUMN j1 DECIMAL(5, 2) NOT NULL DEFAULT 100.00, ADD COLUMN j2 double NOT NULL DEFAULT 1000.5678; +INSERT INTO t1(a, j1, j2) VALUES(0, 90.90, 1000.1234); +SELECT count(*) = max(a) FROM t1 WHERE j1 = 100.00; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE j2 = 1000.5678; +count(*) = max(a) +1 +SELECT j1 FROM t1 WHERE j1 = 90.90; +j1 +90.90 +SELECT j2 FROM t1 WHERE j2 = 1000.1234; +j2 +1000.1234 +ALTER TABLE t1 ADD COLUMN k2 BIT(8) NOT NULL DEFAULT b'101010'; +INSERT INTO t1(a, k2) VALUES(0, b'110011'); +SELECT count(*) = max(a) FROM t1 WHERE k2 = b'101010'; +count(*) = max(a) +1 +SELECT hex(k2) FROM t1 WHERE k2 = b'110011'; +hex(k2) +33 +ALTER TABLE t1 ADD COLUMN l1 CHAR(50), ADD COLUMN l2 VARCHAR(100), ALGORITHM=DEFAULT; +INSERT INTO t1(a, l1, l2) VALUES(0, 'ABCD EFGH', 'abcdefg hijklmn '); +SELECT count(*) = max(a) FROM t1 WHERE l2 IS NULL; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE l1 IS NULL; +count(*) = max(a) +1 +SELECT l1 FROM t1 WHERE l1 = 'ABCD EFGH'; +l1 +ABCD EFGH +SELECT l2 FROM t1 WHERE l2 = 'abcdefg hijklmn '; +l2 +abcdefg hijklmn +ALTER TABLE t1 ADD COLUMN m1 CHAR(50) default 'The fox jumps over', ADD COLUMN m2 VARCHAR(50) DEFAULT 'The fox jumps over the lazy dog.'; +INSERT INTO t1(a, m1, m2) VALUES(0, 'over the lazy dog', 'The lazy dog jumps over the fox.'); +SELECT count(*) = max(a) FROM t1 WHERE m1 = 'The fox jumps over'; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE m2 like 'The fox jumps%'; +count(*) = max(a) +1 +SELECT m1 FROM t1 WHERE m1 = 'over the lazy dog'; +m1 +over the lazy dog +SELECT m2 FROM t1 WHERE m2 like '%the fox.'; +m2 +The lazy dog jumps over the fox. +ALTER TABLE t1 ADD COLUMN n1 BINARY(10), ADD COLUMN n2 VARBINARY(10), ALGORITHM=DEFAULT; +INSERT INTO t1(a, n1, n2) VALUES(0, 0x010203040506070809, 0x102030405060708090); +SELECT count(*) = max(a) FROM t1 WHERE n1 IS NULL; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE n2 IS NULL; +count(*) = max(a) +1 +SELECT hex(n1) FROM t1 WHERE n1 = 0x01020304050607080900; +hex(n1) +01020304050607080900 +SELECT hex(n2) FROM t1 WHERE n2 = 0x102030405060708090; +hex(n2) +102030405060708090 +ALTER TABLE t1 ADD COLUMN o1 BINARY(10) DEFAULT 0x11223344, ADD COLUMN o2 VARBINARY(10) DEFAULT 0x55667788; +INSERT INTO t1(a, o1, o2) VALUES(0, 0x44332211, 0x88776655); +SELECT count(*) = max(a) FROM t1 WHERE o1 = 0x11223344000000000000; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE o2 = 0x55667788; +count(*) = max(a) +1 +SELECT hex(o1) FROM t1 WHERE o1 = 0x44332211000000000000; +hex(o1) +44332211000000000000 +SELECT hex(o2) FROM t1 WHERE o2 = 0x88776655; +hex(o2) +88776655 +ALTER TABLE t1 ADD COLUMN p1 DATETIME, ALGORITHM=DEFAULT; +INSERT INTO t1(a, p1) VALUES(0, '2017-12-31 00:00:00'); +SELECT count(*) = max(a) FROM t1 WHERE p1 IS NULL; +count(*) = max(a) +1 +SELECT p1 FROM t1 WHERE p1 = '2017-12-31 00:00:00'; +p1 +2017-12-31 00:00:00 +ALTER TABLE t1 ADD COLUMN p2 DATETIME NOT NULL DEFAULT '2017-12-31 01:02:03'; +SELECT count(*) = max(a) FROM t1 GROUP BY p2; +count(*) = max(a) +1 +INSERT INTO t1(a, p2) VALUES(0, now()); +SELECT count(*) FROM t1 GROUP BY p2; +count(*) +25 +1 +ALTER TABLE t1 ADD COLUMN q1 ENUM ('value1','value2','value3'), ALGORITHM=INSTANT; +INSERT INTO t1(a, q1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE q1 IS NULL; +count(*) = max(a) +1 +SELECT q1 FROM t1 WHERE q1 = 1; +q1 +value1 +ALTER TABLE t1 ADD COLUMN r1 SET ('a','b','c'), ALGORITHM=INSTANT; +INSERT INTO t1(a, r1) VALUES(0, 'a'); +SELECT count(*) = max(a) FROM t1 WHERE r1 IS NULL; +count(*) = max(a) +1 +SELECT r1 FROM t1 WHERE r1 = 'a'; +r1 +a +ALTER TABLE t1 ADD COLUMN s1 BLOB, ADD COLUMN s2 TEXT, ALGORITHM=INSTANT; +INSERT INTO t1(a, s1, s2) VALUES(0, 0x0102030405, 'abcd qwerty'); +SELECT count(*) = max(a) FROM t1 WHERE s1 IS NULL; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE s2 IS NULL; +count(*) = max(a) +1 +SELECT hex(s1) FROM t1 WHERE s1 = 0x0102030405; +hex(s1) +0102030405 +SELECT s2 FROM t1 WHERE s2 = 'abcd qwerty'; +s2 +abcd qwerty +ALTER TABLE t1 ADD COLUMN u1 BLOB NOT NULL, ADD COLUMN u2 TEXT NOT NULL; +INSERT INTO t1(a, u1, u2) VALUES(0, 0x0102030405, 'abcd qwerty'); +SELECT count(*) = max(a) FROM t1 WHERE u1 = ''; +count(*) = max(a) +1 +SELECT count(*) = max(a) FROM t1 WHERE u2 = ''; +count(*) = max(a) +1 +SELECT hex(u1) FROM t1 WHERE u1 = 0x0102030405; +hex(u1) +0102030405 +SELECT u2 FROM t1 WHERE u2 = 'abcd qwerty'; +u2 +abcd qwerty +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` int DEFAULT NULL, + `c2` int NOT NULL DEFAULT '10', + `d1` bigint DEFAULT NULL, + `d2` bigint NOT NULL DEFAULT '1234567890', + `e1` smallint DEFAULT NULL, + `e2` smallint NOT NULL DEFAULT '10', + `f1` tinyint DEFAULT NULL, + `f2` tinyint NOT NULL DEFAULT '123', + `g1` mediumint DEFAULT NULL, + `g2` mediumint NOT NULL DEFAULT '12345', + `h1` float DEFAULT NULL, + `h2` float NOT NULL DEFAULT '12.34', + `h3` float DEFAULT '56.78', + `h4` float DEFAULT '99.99', + `i1` decimal(5,2) DEFAULT NULL, + `i2` double DEFAULT NULL, + `j1` decimal(5,2) NOT NULL DEFAULT '100.00', + `j2` double NOT NULL DEFAULT '1000.5678', + `k2` bit(8) NOT NULL DEFAULT b'101010', + `l1` char(50) DEFAULT NULL, + `l2` varchar(100) DEFAULT NULL, + `m1` char(50) DEFAULT 'The fox jumps over', + `m2` varchar(50) DEFAULT 'The fox jumps over the lazy dog.', + `n1` binary(10) DEFAULT NULL, + `n2` varbinary(10) DEFAULT NULL, + `o1` binary(10) DEFAULT '"3D\0\0\0\0\0\0', + `o2` varbinary(10) DEFAULT 'Ufw?', + `p1` datetime DEFAULT NULL, + `p2` datetime NOT NULL DEFAULT '2017-12-31 01:02:03', + `q1` enum('value1','value2','value3') DEFAULT NULL, + `r1` set('a','b','c') DEFAULT NULL, + `s1` blob, + `s2` text, + `u1` blob NOT NULL, + `u2` text NOT NULL, + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 2: +# Create a small table, add some columns instantly, along with +# virtual columns +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL, ADD COLUMN d INT DEFAULT 101; +INSERT INTO t1(a, b, c) VALUES(0, 6, 20); +SELECT * FROM t1; +a b c d +1 1 0 101 +2 2 0 101 +3 3 0 101 +4 4 0 101 +5 5 0 101 +6 6 20 101 +ALTER TABLE t1 ADD COLUMN e VARCHAR(100) DEFAULT 'ABCD EFGH', ADD COLUMN f INT DEFAULT 102; +INSERT INTO t1(a, c, e) VALUES(0, 20, 'Hello'), (0, 20, 'World'), (0, 20, 'Hello World'); +SELECT * FROM t1; +a b c d e f +1 1 0 101 ABCD EFGH 102 +2 2 0 101 ABCD EFGH 102 +3 3 0 101 ABCD EFGH 102 +4 4 0 101 ABCD EFGH 102 +5 5 0 101 ABCD EFGH 102 +6 6 20 101 ABCD EFGH 102 +7 NULL 20 101 Hello 102 +8 NULL 20 101 World 102 +9 NULL 20 101 Hello World 102 +ALTER TABLE t1 ADD COLUMN g VARCHAR(100) DEFAULT 103, ADD COLUMN h BIGINT DEFAULT 10000, ADD COLUMN i BIGINT DEFAULT 10001; +SELECT * FROM t1; +a b c d e f g h i +1 1 0 101 ABCD EFGH 102 103 10000 10001 +2 2 0 101 ABCD EFGH 102 103 10000 10001 +3 3 0 101 ABCD EFGH 102 103 10000 10001 +4 4 0 101 ABCD EFGH 102 103 10000 10001 +5 5 0 101 ABCD EFGH 102 103 10000 10001 +6 6 20 101 ABCD EFGH 102 103 10000 10001 +7 NULL 20 101 Hello 102 103 10000 10001 +8 NULL 20 101 World 102 103 10000 10001 +9 NULL 20 101 Hello World 102 103 10000 10001 +INSERT INTO t1(a, b, c, h) VALUES(0, 7, 40, 2000), (0, 7, 40, 20000); +SELECT * FROM t1; +a b c d e f g h i +1 1 0 101 ABCD EFGH 102 103 10000 10001 +2 2 0 101 ABCD EFGH 102 103 10000 10001 +3 3 0 101 ABCD EFGH 102 103 10000 10001 +4 4 0 101 ABCD EFGH 102 103 10000 10001 +5 5 0 101 ABCD EFGH 102 103 10000 10001 +6 6 20 101 ABCD EFGH 102 103 10000 10001 +7 NULL 20 101 Hello 102 103 10000 10001 +8 NULL 20 101 World 102 103 10000 10001 +9 NULL 20 101 Hello World 102 103 10000 10001 +10 7 40 101 ABCD EFGH 102 103 2000 10001 +11 7 40 101 ABCD EFGH 102 103 20000 10001 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL, + `d` int DEFAULT '101', + `e` varchar(100) DEFAULT 'ABCD EFGH', + `f` int DEFAULT '102', + `g` varchar(100) DEFAULT '103', + `h` bigint DEFAULT '10000', + `i` bigint DEFAULT '10001', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 3: +# Create a small table, add some columns instantly, then change +# their default values, check original default values are correct +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +INSERT INTO t1(a, b, c, e) VALUES(0, 6, 200, 'Good day'), (0, 7, 300, 'Good DAY'); +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +6 6 200 101 Good day +7 7 300 101 Good DAY +ALTER TABLE t1 ALTER COLUMN c SET DEFAULT 500; +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +6 6 200 101 Good day +7 7 300 101 Good DAY +INSERT INTO t1(a, b) VALUES(0, 8), (0, 9); +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +6 6 200 101 Good day +7 7 300 101 Good DAY +8 8 500 101 Hello world +9 9 500 101 Hello world +ALTER TABLE t1 ALTER COLUMN e SET DEFAULT 'HELLO MySQL!'; +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +6 6 200 101 Good day +7 7 300 101 Good DAY +8 8 500 101 Hello world +9 9 500 101 Hello world +INSERT INTO t1(a, b) VALUES(0, 10), (0, 20); +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +6 6 200 101 Good day +7 7 300 101 Good DAY +8 8 500 101 Hello world +9 9 500 101 Hello world +10 10 500 101 HELLO MySQL! +11 20 500 101 HELLO MySQL! +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '500', + `d` int DEFAULT '101', + `e` varchar(100) DEFAULT 'HELLO MySQL!', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 4: +# Create a small table, add some columns instantly, then do DML +# on the table +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; +UPDATE t1 SET c = 200 WHERE a > 3; +SELECT distinct(c) FROM t1; +c +100 +200 +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +DELETE FROM t1 WHERE c = 100; +UPDATE t1 SET c = 300; +SELECT distinct(c) FROM t1; +c +300 +SELECT count(*) FROM t1; +count(*) +16 +ALTER TABLE t1 ADD COLUMN t DATETIME DEFAULT CURRENT_TIMESTAMP; +UPDATE t1 SET e = 'Hello MySQL' WHERE a > 10; +UPDATE t1 SET e = 'Hello MySQL!!' WHERE a > 20; +SELECT distinct(e) FROM t1; +e +Hello world +Hello MySQL +Hello MySQL!! +UPDATE t1 SET c = 500 WHERE e LIKE '%world%'; +SELECT c, e FROM t1 GROUP BY c, e; +c e +300 Hello MySQL +300 Hello MySQL!! +500 Hello world +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +UPDATE t1 SET t = CURRENT_TIMESTAMP WHERE a < 50; +SELECT count(t) FROM t1 GROUP BY t; +count(t) +25 +7 +DELETE FROM t1 WHERE a < 50; +SELECT count(t) FROM t1 GROUP BY t; +count(t) +7 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '100', + `d` int DEFAULT '101', + `e` varchar(100) DEFAULT 'Hello world', + `t` datetime DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 5: +# Create a small table, add some columns instantly, then do DDL +# to build indexes +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; +ALTER TABLE t1 ADD KEY(c); +ANALYZE TABLE t1; +Table Op Msg_type Msg_text +test.t1 analyze status OK +EXPLAIN SELECT c FROM t1; +id select_type table partitions type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 NULL index NULL c # NULL # # Using index +Warnings: +Note 1003 /* select#1 */ select `test`.`t1`.`c` AS `c` from `test`.`t1` +SELECT c FROM t1 WHERE c != 100; +c +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; +ALTER TABLE t1 ADD KEY(e); +EXPLAIN SELECT e FROM t1; +id select_type table partitions type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 NULL index NULL e # NULL # 100.00 Using index +Warnings: +Note 1003 /* select#1 */ select `test`.`t1`.`e` AS `e` from `test`.`t1` +SELECT count(e) FROM t1 WHERE e LIKE '%MySQL%'; +count(e) +10 +SELECT count(e) FROM t1 WHERE e LIKE '%world%'; +count(e) +30 +ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(a, c); +SELECT a, c, e FROM t1 WHERE a > 25 AND a < 40; +a c e +26 100 Hello world +27 100 Hello world +28 100 Hello world +29 100 Hello world +30 100 Hello world +31 100 Hello MySQL +32 100 Hello MySQL +33 100 Hello MySQL +34 100 Hello MySQL +35 100 Hello MySQL +36 100 Hello MySQL +37 100 Hello MySQL +38 100 Hello MySQL +39 100 Hello MySQL +ALTER TABLE t1 ADD COLUMN f VARCHAR(1024) DEFAULT 'Foo Bar'; +INSERT INTO t1(b, c, e,f ) SELECT b, c, e,f FROM t1; +SELECT a, c, e,f FROM t1 WHERE a > 25 AND a < 40; +a c e f +26 100 Hello world Foo Bar +27 100 Hello world Foo Bar +28 100 Hello world Foo Bar +29 100 Hello world Foo Bar +30 100 Hello world Foo Bar +31 100 Hello MySQL Foo Bar +32 100 Hello MySQL Foo Bar +33 100 Hello MySQL Foo Bar +34 100 Hello MySQL Foo Bar +35 100 Hello MySQL Foo Bar +36 100 Hello MySQL Foo Bar +37 100 Hello MySQL Foo Bar +38 100 Hello MySQL Foo Bar +39 100 Hello MySQL Foo Bar +ALTER TABLE t1 ADD COLUMN g VARCHAR(1024) DEFAULT '------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------', algorithm=instant; +INSERT INTO t1(b, c, e,f, g) SELECT b, c, e,f,g FROM t1; +SELECT a, c, e, f, g FROM t1 WHERE a > 25 AND a < 40; +a c e f g +26 100 Hello world Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +27 100 Hello world Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +28 100 Hello world Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +29 100 Hello world Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +30 100 Hello world Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +31 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +32 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +33 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +34 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +35 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +36 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +37 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +38 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +39 100 Hello MySQL Foo Bar ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '100', + `d` int DEFAULT '101', + `e` varchar(100) DEFAULT 'Hello world', + `f` varchar(1024) DEFAULT 'Foo Bar', + `g` varchar(1024) DEFAULT '------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------', + PRIMARY KEY (`a`,`c`), + KEY `c` (`c`), + KEY `e` (`e`) +) ENGINE=ROCKSDB AUTO_INCREMENT=161 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 6: +# Create a small table, add some columns instantly, then do DML +# on the table, and some simple rollback +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; +START TRANSACTION; +INSERT INTO t1(a, b) VALUES(0, 6); +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +6 6 100 101 Hello world +ROLLBACK; +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +START TRANSACTION; +UPDATE t1 SET c = 500 WHERE a = 1; +UPDATE t1 SET b = 1000 WHERE a = 2; +SELECT a, b, c FROM t1 WHERE a = 1 OR a = 2; +a b c +1 1 500 +2 1000 100 +ROLLBACK; +SELECT a, b, c FROM t1; +a b c +1 1 100 +2 2 100 +3 3 100 +4 4 100 +5 5 100 +START TRANSACTION; +DELETE FROM t1 WHERE a < 5; +INSERT INTO t1(a, b) VALUES(0, 6); +SELECT * FROM t1; +a b c d e +5 5 100 101 Hello world +7 6 100 101 Hello world +ROLLBACK; +SELECT * FROM t1; +a b c d e +1 1 100 101 Hello world +2 2 100 101 Hello world +3 3 100 101 Hello world +4 4 100 101 Hello world +5 5 100 101 Hello world +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '100', + `d` int DEFAULT '101', + `e` varchar(100) DEFAULT 'Hello world', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +CREATE TABLE t1(id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000)) ; +INSERT INTO t1 VALUES(1, repeat('a', 4000), repeat('b', 4000), repeat('c', 1)); +SELECT id, length(c1), length(c2), length(c3) FROM t1; +id length(c1) length(c2) length(c3) +1 4000 4000 1 +ALTER TABLE t1 ADD COLUMN c4 VARCHAR(500) NOT NULL DEFAULT 'dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'; +SELECT id, length(c1), length(c2), length(c3), length(c4) FROM t1; +id length(c1) length(c2) length(c3) length(c4) +1 4000 4000 1 500 +START TRANSACTION; +UPDATE t1 SET c1 = repeat('x', 200) WHERE id = 1; +ROLLBACK; +SELECT id, length(c1), length(c2), length(c3), length(c4) FROM t1; +id length(c1) length(c2) length(c3) length(c4) +1 4000 4000 1 500 +START TRANSACTION; +UPDATE t1 SET c4 = 'x' WHERE id = 1; +ROLLBACK; +SELECT id, length(c1), length(c2), length(c3), length(c4) FROM t1; +id length(c1) length(c2) length(c3) length(c4) +1 4000 4000 1 500 +DROP TABLE t1; +# +# Scenario 7: +# Confirm some ADD COLUMN are instant, some are not +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100 AFTER b; +ALTER TABLE t1 ADD COLUMN d INT NOT NULL DEFAULT 100 AFTER b; +ALTER TABLE t1 ADD COLUMN e INT NOT NULL DEFAULT 100, ADD KEY(e); +ALTER TABLE t1 ADD COLUMN f INT NOT NULL DEFAULT 100, FORCE; +ALTER TABLE t1 ADD COLUMN g INT NOT NULL DEFAULT 100, ALGORITHM=INPLACE; +ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY. +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `d` int NOT NULL DEFAULT '100', + `c` int NOT NULL DEFAULT '100', + `e` int NOT NULL DEFAULT '100', + `f` int NOT NULL DEFAULT '100', + PRIMARY KEY (`a`), + KEY `e` (`e`) +) ENGINE=ROCKSDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 9: +# Instant ADD COLUMN on partitioned table, only simple test here +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) PARTITION BY HASH(a) PARTITIONS 3;; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; +SELECT * FROM t1; +a b c +3 3 5 +6 6 5 +1 1 5 +4 4 5 +7 7 5 +2 2 5 +5 5 5 +8 8 5 +INSERT INTO t1 VALUES(0, 9, 10), (0, 10, 20); +SELECT * FROM t1 WHERE b > 8; +a b c +9 9 10 +10 10 20 +UPDATE t1 SET c = 8 WHERE a = 1 OR a = 3 OR a = 5 OR a = 7; +SELECT * FROM t1; +a b c +3 3 8 +6 6 5 +9 9 10 +1 1 8 +4 4 5 +7 7 8 +10 10 20 +2 2 5 +5 5 8 +8 8 5 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '5', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +/*!50100 PARTITION BY HASH (`a`) +PARTITIONS 3 */ +DROP TABLE t1; +CREATE TABLE t1 (a INT, b INT) PARTITION BY HASH(a) PARTITIONS 2;; +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; +ALTER TABLE t1 CHANGE COLUMN c c1 INT; +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; +DROP TABLE t1; +# +# Scenario 10: +# EXCHANGE PARTITION is not allowed if either is instant +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ;; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; +CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT, c INT NOT NULL DEFAULT 5) PARTITION BY RANGE (a) (PARTITION p1 VALUES LESS THAN (10), PARTITION p2 VALUES LESS THAN (20), PARTITION p3 VALUES LESS THAN (30));; +ALTER TABLE t2 EXCHANGE PARTITION p1 WITH TABLE t1; +ERROR HY000: Partition management on a not partitioned table is not possible +ALTER TABLE t2 ADD COLUMN d INT; +ALTER TABLE t1 ADD COLUMN d INT, ALGORITHM=COPY; +ALTER TABLE t2 EXCHANGE PARTITION p1 WITH TABLE t1; +ERROR HY000: Partition management on a not partitioned table is not possible +OPTIMIZE TABLE t2; +Table Op Msg_type Msg_text +test.t2 optimize status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '5', + `d` int DEFAULT NULL, + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +SHOW CREATE TABLE t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int NOT NULL DEFAULT '5', + `d` int DEFAULT NULL, + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +/*!50100 PARTITION BY RANGE (`a`) +(PARTITION p1 VALUES LESS THAN (10) ENGINE = ROCKSDB, + PARTITION p2 VALUES LESS THAN (20) ENGINE = ROCKSDB, + PARTITION p3 VALUES LESS THAN (30) ENGINE = ROCKSDB) */ +ALTER TABLE t2 EXCHANGE PARTITION p1 WITH TABLE t1; +ERROR HY000: Partition management on a not partitioned table is not possible +DROP TABLE t1, t2; +# +# Scenario 11: +# PRIMARY KEY with more than one column, at least to verify it works with REDUDANT +# +CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL, PRIMARY KEY(a, b)) ;; +INSERT INTO t1 VALUES(0, 1), (1, 2), (2, 3), (3, 4); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; +SELECT * FROM t1; +a b c +0 1 5 +1 2 5 +2 3 5 +3 4 5 +UPDATE t1 SET c = b WHERE b <= 2; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SELECT * FROM t1; +a b c +0 1 1 +1 2 2 +2 3 5 +3 4 5 +DROP TABLE t1; +# +# Scenario 12: +# Mix ALTER PARTITION and ALTER TABLE ... INPLACE. This is to check if first partition is not +# instant after ALTER PARTITION, will the metadata be copied correctly +# +CREATE TABLE t1 (col1 INT, col2 INT, col3 INT, col4 TEXT) ENGINE = RocksDB PARTITION BY RANGE(col1 * 2) ( PARTITION p0 VALUES LESS THAN (128), PARTITION p1 VALUES LESS THAN (256) , PARTITION p2 VALUES LESS THAN (384) , PARTITION p3 VALUES LESS THAN MAXVALUE);; +INSERT INTO t1 VALUES(1, 2, 3, 'abcdefg'), (100, 200, 300, 'qwerty'), (200, 300, 400, 'asdfg'); +ALTER TABLE t1 ALGORITHM DEFAULT, ADD COLUMN col5 VARCHAR(500), ADD COLUMN col6 TEXT; +ALTER TABLE t1 ALGORITHM INPLACE, REORGANIZE PARTITION p0 INTO (PARTITION p0_a VALUES LESS THAN (64), PARTITION p0_b VALUES LESS THAN (128)); +ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY. +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ALGORITHM DEFAULT, ADD KEY idx4(col4(10)); +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ALGORITHM DEFAULT, LOCK EXCLUSIVE, REORGANIZE PARTITION p0_a, p0_b INTO (PARTITION p0 VALUES LESS THAN (128)); +ERROR HY000: Error in list of partitions to REORGANIZE +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ADD KEY idx3(col3); +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SELECT * FROM t1; +col1 col2 col3 col4 col5 col6 +1 2 3 abcdefg NULL NULL +100 200 300 qwerty NULL NULL +200 300 400 asdfg NULL NULL +DROP TABLE t1; +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) PARTITION BY HASH(a) PARTITIONS 3;; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8); +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; +ALTER TABLE t1 ADD PARTITION PARTITIONS 10; +Warnings: +Warning 138 Inplace partition altering is not supported +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ADD KEY(b); +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SELECT * FROM t1; +a b c +1 1 5 +2 2 5 +3 3 5 +4 4 5 +5 5 5 +6 6 5 +7 7 5 +8 8 5 +DROP TABLE t1; +# +# Scenario 13: +# Create a table with a two level clustered index, do instant ADD COLUMN, then the non-leaf node +# should be parsed correctly +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, d INT NOT NULL, b BLOB NOT NULL, c VARCHAR(87), INDEX(d), INDEX(a ASC), PRIMARY KEY (a, d, c)) PARTITION BY LINEAR KEY(c) PARTITIONS 9;; +INSERT INTO t1(d, b, c) VALUES(1, 2, 'aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(2, 3, 'aaaaaaaaaahhhhhhhhhhbbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(3, 4, 'bbbbbbbbbbaaaaaaaaaahhhhhhhhhhccccccccccddddddddddeeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(4, 5, 'eeeeeeeeeehhhhhhhhhhbbbbbbbbbbccccccccccddddddddddaaaaaaaaaaffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(5, 6, 'aaaaaaaaaahhhhhhhhhhbbbbbbbbbbddddddddddcccccccccceeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(6, 7, 'cccccccccchhhhhhhhhhbbbbbbbbbbaaaaaaaaaaddddddddddeeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +ALTER TABLE t1 ADD COLUMN nc086 BIGINT NOT NULL FIRST, ALGORITHM=COPY, LOCK=DEFAULT; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ADD COLUMN nc082 TINYTEXT; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SELECT COUNT(*) FROM t1; +COUNT(*) +384 +DROP TABLE t1; +# +# Scenario 15: +# Create a small table, and add JSON columns and verify +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 JSON, ALGORITHM = INSTANT; +INSERT INTO t1(a, c1) VALUES(0, '{"key1": "value1", "key2": "value2"}'); +SELECT count(*) = max(a) FROM t1 WHERE c1 IS NULL; +count(*) = max(a) +1 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` json DEFAULT NULL, + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 16: +# Create a small table, and add INSTANT columns and verify with trigger +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +INSERT INTO t2 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW +INSERT INTO t2 VALUES(0,6); +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +c1 +bbbb +DROP TRIGGER t1_ai; +ALTER TABLE t2 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'cccc', ALGORITHM = INSTANT; +CREATE TRIGGER t2_ai AFTER INSERT ON t2 FOR EACH ROW +INSERT INTO t1(a,c1) VALUES(0,'eeee'); +INSERT INTO t2(a, c1) VALUES(0, 'dddd'); +SELECT count(*) = max(a) FROM t2 WHERE c1='cccc'; +count(*) = max(a) +1 +SELECT c1 FROM t2 WHERE c1 = 'dddd'; +c1 +dddd +DROP TRIGGER t2_ai; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +CHECK TABLE t2; +Table Op Msg_type Msg_text +test.t2 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'aaaa', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +SHOW CREATE TABLE t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'cccc', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1,t2; +# +# Scenario 17: +# Create a small table, and add INSTANT columns and verify with storedprocedure +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +CREATE PROCEDURE p1() INSERT INTO t1(a,c1) VALUES(0, 'bbbb'); +CALL p1(); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +c1 +bbbb +DROP PROCEDURE p1; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'aaaa', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 18: +# Create a small table, and add INSTANT columns and verify with view +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +CREATE VIEW v1 AS SELECT * FROM t1; +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +c1 +bbbb +SELECT * FROM v1; +a b c1 +1 1 aaaa +2 2 aaaa +3 3 aaaa +4 4 aaaa +5 5 aaaa +6 NULL bbbb +DROP VIEW v1; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'aaaa', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 19: +# Create a small table, and add INSTANT columns and drop it and verify +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +c1 +bbbb +ALTER TABLE t1 DROP COLUMN c1; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 20: +# Create a small table, and add INSTANT columns and rename table +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +ALTER TABLE t1 RENAME t2; +INSERT INTO t2(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t2 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t2 WHERE c1 = 'bbbb'; +c1 +bbbb +CHECK TABLE t2; +Table Op Msg_type Msg_text +test.t2 check status OK +SHOW CREATE TABLE t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'aaaa', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t2; +# +# Scenario 21: +# Create a small table, and add INSTANT columns and change its data type INSTANTly won't work +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +c1 +bbbb +ALTER TABLE t1 CHANGE c1 c2 CHAR(10) NOT NULL DEFAULT 'cccc'; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c2` char(10) NOT NULL DEFAULT 'cccc', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 22: +# Create a small table, and add INSTANT columns and create hash,btree multi column index and verify +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +CREATE INDEX id1 ON t1(c1) USING BTREE; +Warnings: +Note 3502 This storage engine does not support the BTREE index algorithm, storage engine default was used instead. +CREATE INDEX id2 ON t1(c1) USING HASH; +Warnings: +Note 3502 This storage engine does not support the HASH index algorithm, storage engine default was used instead. +Warning 1831 Duplicate index 'id2' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release. +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +c1 +bbbb +DROP INDEX id1 ON t1; +DROP INDEX id2 ON t1; +ALTER TABLE t1 ADD COLUMN c2 VARCHAR(10) NOT NULL DEFAULT 'cccc', ALGORITHM = INSTANT; +CREATE INDEX id1 ON t1(c1 ASC,c2 ASC); +INSERT INTO t1(a, c2) VALUES(0, 'dddd'); +SELECT count(*) = max(a) FROM t1 WHERE c1='cccc'; +count(*) = max(a) +NULL +SELECT c1 FROM t1 WHERE c1 = 'dddd'; +c1 +ALTER TABLE t1 RENAME INDEX id1 TO id2; +DROP INDEX id2 ON t1; +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'aaaa', + `c2` varchar(10) NOT NULL DEFAULT 'cccc', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 23: +# Create a small table, and add INSTANT columns and perform table join operation +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +INSERT INTO t2 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +INSERT INTO t1(a, c1) VALUES(0, 'cccc'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +count(*) = max(a) +1 +SELECT c1 FROM t1 WHERE c1 = 'cccc'; +c1 +cccc +ALTER TABLE t2 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'bbbb', ALGORITHM = INSTANT; +INSERT INTO t2(a, c1) VALUES(0, 'cccc'); +SELECT count(*) = max(a) FROM t2 WHERE c1='bbbb'; +count(*) = max(a) +1 +SELECT c1 FROM t2 WHERE c1 = 'cccc'; +c1 +cccc +SELECT * FROM t1 JOIN t2 ON t1.c1=t2.c1; +a b c1 a b c1 +6 NULL cccc 6 NULL cccc +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +CHECK TABLE t2; +Table Op Msg_type Msg_text +test.t2 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'aaaa', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +SHOW CREATE TABLE t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` varchar(10) NOT NULL DEFAULT 'bbbb', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +DROP TABLE t2; +# +# Scenario 24: +# Create a small table, and add stored and(or) virtual columns +# after last stored column in the table +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT, c INT, d INT DEFAULT 101, e INT DEFAULT 102); +INSERT INTO t1(a, b, c) VALUES(0, 1, 2), (0, 2, 3), (0, 3, 4), (0, 4, 5), (0, 5, 6); +ALTER TABLE t1 ADD COLUMN h INT NOT NULL AFTER c; +INSERT INTO t1(a, b, c, h) VALUES(0, 6, 20, 40); +SELECT * FROM t1; +a b c h d e +1 1 2 0 101 102 +2 2 3 0 101 102 +3 3 4 0 101 102 +4 4 5 0 101 102 +5 5 6 0 101 102 +6 6 20 40 101 102 +ALTER TABLE t1 ADD COLUMN i VARCHAR(100) DEFAULT 'ABCD EFGH' AFTER h, ADD COLUMN f INT DEFAULT 12 AFTER i; +INSERT INTO t1(a, b, c, h, i) VALUES(0, 20, 30, 50, 'qwerty'); +SELECT * FROM t1; +a b c h i f d e +1 1 2 0 ABCD EFGH 12 101 102 +2 2 3 0 ABCD EFGH 12 101 102 +3 3 4 0 ABCD EFGH 12 101 102 +4 4 5 0 ABCD EFGH 12 101 102 +5 5 6 0 ABCD EFGH 12 101 102 +6 6 20 40 ABCD EFGH 12 101 102 +7 20 30 50 qwerty 12 101 102 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c` int DEFAULT NULL, + `h` int NOT NULL, + `i` varchar(100) DEFAULT 'ABCD EFGH', + `f` int DEFAULT '12', + `d` int DEFAULT '101', + `e` int DEFAULT '102', + PRIMARY KEY (`a`) +) ENGINE=ROCKSDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +# +# Scenario 25: +# bypass query +# +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +always_off +SELECT @@rocksdb_select_bypass_policy INTO @save_rocksdb_select_bypass_policy; +CREATE TABLE `t1` ( +`id1` bigint(20) unsigned NOT NULL DEFAULT '0' , +`id1_type` int(10) unsigned NOT NULL DEFAULT '0' , +`id2` bigint(20) unsigned NOT NULL DEFAULT '0' , +`id2_type` int(10) unsigned NOT NULL DEFAULT '0' , +`link_type` bigint(20) unsigned NOT NULL DEFAULT '0' , +`visibility` tinyint(3) NOT NULL DEFAULT '0' , +`data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '' , +`time` int(10) unsigned NOT NULL DEFAULT '0' , +`version` bigint(20) unsigned NOT NULL DEFAULT '0' , +PRIMARY KEY (`link_type` , `id1` , `id2`) COMMENT 'cf_link' , +KEY `id1_type` (`id1` , `link_type` , `visibility` , `time` , `id2` , +`version` , `data`) COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +insert into t1 values (1, 1, 1, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (1, 1, 2, 2, 3, 3, 'a10', 10, 125); +insert into t1 values (1, 1, 3, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (1, 1, 4, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (1, 1, 5, 2, 3, 3, 'a12', 12, 125); +insert into t1 values (1, 1, 6, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (1, 1, 7, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (1, 1, 8, 2, 3, 4, 'a13', 13, 125); +insert into t1 values (1, 1, 9, 2, 3, 4, 'a14', 14, 125); +insert into t1 values (1, 1, 10, 2, 3, 4, 'a15', 15, 125); +insert into t1 values (2, 1, 1, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 2, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 3, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 4, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 5, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 6, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 7, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 8, 2, 3, 4, 'a13', 13, 125); +insert into t1 values (2, 1, 9, 2, 3, 4, 'a14', 14, 125); +insert into t1 values (2, 1, 10, 2, 3, 4, 'a15', 15, 125); +insert into t1 values (2, 1, 1, 2, 4, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 2, 2, 4, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 3, 2, 4, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 4, 2, 4, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 5, 2, 4, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 6, 2, 4, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 7, 2, 4, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 8, 2, 4, 4, 'a13', 13, 125); +insert into t1 values (2, 1, 9, 2, 4, 4, 'a14', 14, 125); +insert into t1 values (2, 1, 10, 2, 4, 4, 'a15', 15, 125); +insert into t1 values (3, 1, 10, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (3, 1, 9, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (3, 1, 8, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (3, 1, 7, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (3, 1, 6, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (3, 1, 5, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (3, 1, 4, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (3, 1, 3, 2, 3, 4, 'a13', 13, 125); +insert into t1 values (3, 1, 2, 2, 3, 4, 'a14', 14, 125); +insert into t1 values (3, 1, 1, 2, 3, 4, 'a15', 15, 125); +insert into t1 values (9, 1, 9, 2, 5, 6, '0 ', 10, 125); +insert into t1 values (9, 1, 8, 2, 5, 6, '01 ', 11, 125); +insert into t1 values (9, 1, 7, 2, 5, 6, '012 ', 11, 125); +insert into t1 values (9, 1, 6, 2, 5, 6, '0123 ', 12, 125); +insert into t1 values (9, 1, 5, 2, 5, 6, '01234 ', 12, 125); +insert into t1 values (9, 1, 4, 2, 5, 6, '012345 ', 12, 125); +insert into t1 values (9, 1, 3, 2, 5, 6, '0123456 ', 13, 125); +insert into t1 values (9, 1, 2, 2, 5, 6, '01234567 ', 14, 125); +insert into t1 values (9, 1, 1, 2, 5, 6, '012345678 ', 15, 125); +insert into t1 values (9, 1, 0, 2, 5, 6, '0123456789 ', 15, 125); +ALTER TABLE t1 ADD COLUMN version2 bigint(20) unsigned NOT NULL DEFAULT 99, algorithm = instant; +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +insert into t1 values (10, 1, 9, 2, 5, 6, '0 ', 10, 125, 128); +insert into t1 values (10, 1, 8, 2, 5, 6, '01 ', 11, 125, 128); +insert into t1 values (10, 1, 7, 2, 5, 6, '012 ', 11, 125, 128); +insert into t1 values (10, 1, 6, 2, 5, 6, '0123 ', 12, 125, 128); +insert into t1 values (10, 1, 5, 2, 5, 6, '01234 ', 12, 125, 128); +insert into t1 values (10, 1, 4, 2, 5, 6, '012345 ', 12, 125, 128); +insert into t1 values (10, 1, 3, 2, 5, 6, '0123456 ', 13, 125, 128); +insert into t1 values (10, 1, 2, 2, 5, 6, '01234567 ', 14, 125, 128); +insert into t1 values (10, 1, 1, 2, 5, 6, '012345678 ', 15, 125, 128); +insert into t1 values (10, 1, 0, 2, 5, 6, '0123456789 ', 15, 125, 128); +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +always_off +SET GLOBAL rocksdb_select_bypass_policy=1; +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +always_on +SELECT variable_value INTO @a FROM performance_schema.global_status WHERE +variable_name="rocksdb_select_bypass_executed"; +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version +1 2 1 2 a10 125 +SELECT /*+ abc */ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version +1 2 1 2 a10 125 +Warnings: +Warning 1064 Optimizer hint syntax error near 'abc */ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND ' at line 1 +SELECT /*+ no_bypass*/ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version +1 2 1 2 a10 125 +Warnings: +Warning 1064 Optimizer hint syntax error near 'no_bypass*/ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2' at line 1 +SELECT id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version +1 2 1 2 a10 125 +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version version2 +1 2 1 2 a10 125 99 +SELECT /*+ abc */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version version2 +1 2 1 2 a10 125 99 +Warnings: +Warning 1064 Optimizer hint syntax error near 'abc */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND ' at line 1 +SELECT /*+ no_bypass*/ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version version2 +1 2 1 2 a10 125 99 +Warnings: +Warning 1064 Optimizer hint syntax error near 'no_bypass*/ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1' at line 1 +SELECT id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +id1 id2 id1_type id2_type data version version2 +1 2 1 2 a10 125 99 +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +id1 id2 id1_type id2_type data version version2 +SELECT /*+ abc */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +id1 id2 id1_type id2_type data version version2 +Warnings: +Warning 1064 Optimizer hint syntax error near 'abc */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND ' at line 1 +SELECT /*+ no_bypass*/ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +id1 id2 id1_type id2_type data version version2 +Warnings: +Warning 1064 Optimizer hint syntax error near 'no_bypass*/ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1' at line 1 +SELECT id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +id1 id2 id1_type id2_type data version version2 +SELECT variable_value INTO @b FROM performance_schema.global_status WHERE +variable_name="rocksdb_select_bypass_executed"; +# Should be 12 +SELECT @b-@a; +@b-@a +12 +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +always_on +set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +always_off +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `id1` bigint unsigned NOT NULL DEFAULT '0', + `id1_type` int unsigned NOT NULL DEFAULT '0', + `id2` bigint unsigned NOT NULL DEFAULT '0', + `id2_type` int unsigned NOT NULL DEFAULT '0', + `link_type` bigint unsigned NOT NULL DEFAULT '0', + `visibility` tinyint NOT NULL DEFAULT '0', + `data` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `time` int unsigned NOT NULL DEFAULT '0', + `version` bigint unsigned NOT NULL DEFAULT '0', + `version2` bigint unsigned NOT NULL DEFAULT '99', + PRIMARY KEY (`link_type`,`id1`,`id2`) COMMENT 'cf_link', + KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`) COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8 +DROP TABLE t1; +set global rocksdb_disable_instant_ddl = @saved_rocksd_instant_ddl; diff --git a/mysql-test/suite/rocksdb/r/instant_add_column_clear_debug.result b/mysql-test/suite/rocksdb/r/instant_add_column_clear_debug.result new file mode 100644 index 000000000000..4ce2bc0552f3 --- /dev/null +++ b/mysql-test/suite/rocksdb/r/instant_add_column_clear_debug.result @@ -0,0 +1,51 @@ +set @saved_rocksd_instant_ddl=@@global.rocksdb_disable_instant_ddl; +set global rocksdb_disable_instant_ddl = false; +# +# Scenario 1: +# Create a normal table, rebuild and truncate will clear the instant +# information +# +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +ALTER TABLE t1 ADD COLUMN c1 INT DEFAULT 10; +count(*) = 1 +1 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ADD COLUMN c2 INT DEFAULT 20, ADD KEY(c2); +SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +Instant columns equal +NULL +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +ALTER TABLE t1 ADD COLUMN c3 INT DEFAULT 10; +count(*) = 1 +1 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +TRUNCATE TABLE t1; +SELECT 4 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +Instant columns equal +1 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int NOT NULL AUTO_INCREMENT, + `b` int DEFAULT NULL, + `c1` int DEFAULT '10', + `c2` int DEFAULT '20', + `c3` int DEFAULT '10', + PRIMARY KEY (`a`), + KEY `c2` (`c2`) +) ENGINE=ROCKSDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci +DROP TABLE t1; +set global rocksdb_disable_instant_ddl = @saved_rocksd_instant_ddl; diff --git a/mysql-test/suite/rocksdb/r/instant_add_column_dd_debug.result b/mysql-test/suite/rocksdb/r/instant_add_column_dd_debug.result index 761f08418a1b..50e93fd005c6 100644 --- a/mysql-test/suite/rocksdb/r/instant_add_column_dd_debug.result +++ b/mysql-test/suite/rocksdb/r/instant_add_column_dd_debug.result @@ -89,92 +89,90 @@ Instant columns equal CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK -ALTER TABLE t1 ADD COLUMN i1 DECIMAL(5, 2), ADD COLUMN i2 double, ALGORITHM=INSTANT; +ALTER TABLE t1 ADD COLUMN i1 DECIMAL(5, 2), ADD COLUMN i2 double; SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal -1 +NULL CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN j1 DECIMAL(5, 2) NOT NULL DEFAULT 100.00, ADD COLUMN j2 double NOT NULL DEFAULT 1000.5678; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; -Instant columns equal -1 +count(*) = 1 +0 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN k1 BIT(8), ALGORITHM=INSTANT; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 16 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN k2 BIT(8) NOT NULL DEFAULT b'101010'; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 16 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN m1 CHAR(50) default 'The fox jumps over', ADD COLUMN m2 VARCHAR(50) DEFAULT 'The fox jumps over the lazy dog.'; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 16 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN n1 BINARY(10), ADD COLUMN n2 VARBINARY(10), ALGORITHM=DEFAULT; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 16 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN o1 BINARY(10) DEFAULT 0x11223344, ADD COLUMN o2 VARBINARY(10) DEFAULT 0x55667788; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 16 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN p1 DATETIME, ALGORITHM=DEFAULT; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 16 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal -1 +NULL CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN p2 DATETIME NOT NULL DEFAULT '2017-12-31 01:02:03'; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; -Instant columns equal +count(*) = 1 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN q1 ENUM ('value1','value2','value3'), ALGORITHM=INSTANT; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 27 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN r1 SET ('a','b','c'), ALGORITHM=INSTANT; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 27 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN s1 BLOB, ADD COLUMN s2 TEXT, ALGORITHM=INSTANT; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 27 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK ALTER TABLE t1 ADD COLUMN u1 BLOB NOT NULL, ADD COLUMN u2 TEXT NOT NULL; -SELECT 2 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; +SELECT 27 = REGEXP_SUBSTR(REGEXP_SUBSTR(se_private_data,'instant_col=[0-9]+'), '[0-9]+') AS `Instant columns equal` FROM mysql.tables WHERE name like '%t1%'; Instant columns equal 1 CHECK TABLE t1; @@ -315,14 +313,14 @@ test.t1 check status OK ALTER TABLE t1 ALTER COLUMN c SET DEFAULT 500; SELECT count(*) FROM mysql.columns WHERE name = 'c' AND se_private_data is not NULL; count(*) -0 +1 SELECT count(*) FROM mysql.columns WHERE name = 'e' AND se_private_data is not NULL; count(*) -0 +1 ALTER TABLE t1 ALTER COLUMN e SET DEFAULT 'HELLO MySQL!'; SELECT count(*) FROM mysql.columns WHERE name = 'e' AND se_private_data is not NULL; count(*) -0 +1 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK diff --git a/mysql-test/suite/rocksdb/r/instant_add_column_intrinsic_table.result b/mysql-test/suite/rocksdb/r/instant_add_column_intrinsic_table.result new file mode 100644 index 000000000000..09c1ff1c37a4 --- /dev/null +++ b/mysql-test/suite/rocksdb/r/instant_add_column_intrinsic_table.result @@ -0,0 +1,89 @@ +set @saved_rocksdb_instant_ddl=@@global.rocksdb_disable_instant_ddl; +set global rocksdb_disable_instant_ddl = false; +# +# query use intrinsic table +# +create table ten(a int primary key); +insert into ten values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); +create table one_k(a int primary key); +insert into one_k select A.a + B.a* 10 + C.a * 100 from ten A, ten B, ten C; +create table t1 ( +pk int primary key, +key1 varchar(32) CHARACTER SET utf8 COLLATE utf8_bin, +filler varchar(32), +key (key1) +); +Warnings: +Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. +Warning 3778 'utf8_bin' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead. +insert into t1 select a,a,a from one_k; +ALTER table t1 add column c1 int default 99; +INSERT into t1 select 1000 + a, a, a, a from one_k; +explain SELECT DISTINCT filler from t1 order by filler limit 10; +id select_type table partitions type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 0 0.00 Using temporary; Using filesort +Warnings: +Note 1003 /* select#1 */ select distinct `test`.`t1`.`filler` AS `filler` from `test`.`t1` order by `test`.`t1`.`filler` limit 10 +SELECT DISTINCT filler from t1 order by filler limit 10; +filler +0 +1 +10 +100 +101 +102 +103 +104 +105 +106 +# +# temp table +# +CREATE TEMPORARY TABLE t2 select * from t1; +explain SELECT DISTINCT filler from t2 order by filler limit 10; +id select_type table partitions type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2000 100.00 Using temporary; Using filesort +Warnings: +Note 1003 /* select#1 */ select distinct `test`.`t2`.`filler` AS `filler` from `test`.`t2` order by `test`.`t2`.`filler` limit 10 +SELECT DISTINCT filler from t2 order by filler limit 10; +filler +0 +1 +10 +100 +101 +102 +103 +104 +105 +106 +DROP TABLE t1, t2; +DROP TABLE ten; +DROP TABLE one_k; +# +# temp table +# +CREATE TABLE `t1` (`c1` INT, `c2` INT, `c3` CHAR(255), `c4` CHAR(255)); +INSERT INTO t1 VALUES +(1,1,'t1','t1'), (2,2,'t1','t1'), (3,3,'t1','t1'), (4,4,'t1','t1'), (5,5,'t1','t1'), +(6,6,'t1','t1'), (7,7,'t1','t1'), (8,8,'t1','t1'), (9,9,'t1','t1'), (10,10,'t1','t1'), +(11,11,'t1','t1'), (12,12,'t1','t1'), (13,13,'t1','t1'), (14,14,'t1','t1'), (15,15,'t1','t1'), +(16,16,'t1','t1'), (17,17,'t1','t1'), (18,18,'t1','t1'), (19,19,'t1','t1'), (20,20,'t1','t1'), +(21,21,'t1','t1'), (22,22,'t1','t1'), (23,23,'t1','t1'), (24,24,'t1','t1'), (25,25,'t1','t1'); +SET @@session.max_heap_table_size=16*1024; +SET @@session.tmp_table_size=1024; +SET optimizer_switch="derived_condition_pushdown=off"; +SET SESSION internal_tmp_mem_storage_engine=MEMORY; +SELECT * FROM (SELECT c2, c3, c4, SUM(c1) OVER (PARTITION BY c2) AS wcol FROM t1)o WHERE c2=10; +c2 c3 c4 wcol +10 t1 t1 10 +SET SESSION internal_tmp_mem_storage_engine=TempTable; +SELECT * FROM (SELECT c2, c3, c4, SUM(c1) OVER (PARTITION BY c2) AS wcol FROM t1)o WHERE c2=10; +c2 c3 c4 wcol +10 t1 t1 10 +SET optimizer_switch=default; +SET @@session.max_heap_table_size=default; +SET @@session.tmp_table_size=default; +SET @@session.internal_tmp_mem_storage_engine=default; +DROP TABLE t1; +set global rocksdb_disable_instant_ddl = @saved_rocksdb_instant_ddl; diff --git a/mysql-test/suite/rocksdb/t/instant_add_column_basic.test b/mysql-test/suite/rocksdb/t/instant_add_column_basic.test new file mode 100644 index 000000000000..d466b03f3de9 --- /dev/null +++ b/mysql-test/suite/rocksdb/t/instant_add_column_basic.test @@ -0,0 +1,1254 @@ +# copy test scenarios from innodb instant DDL test +# mysql-test/suite/innodb/include/instant_add_column_basic.inc +# +set @saved_rocksd_instant_ddl=@@global.rocksdb_disable_instant_ddl; +set global rocksdb_disable_instant_ddl = false; + +--echo # +--echo # Scenario 1: +--echo # Create a small table, and add all kinds of new columns and verify +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +ALTER TABLE t1 ADD COLUMN c1 INT, ALGORITHM=INSTANT; +INSERT INTO t1(a, c1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE c1 IS NULL; +SELECT c1 FROM t1 WHERE c1 = 1; + +# ADD COLUMN INT DEFAULT +ALTER TABLE t1 ADD COLUMN c2 INT NOT NULL DEFAULT 10; +INSERT INTO t1(a, c2) VALUES(0, 11); +SELECT count(*) = max(a) FROM t1 WHERE c2 = 10; +SELECT c2 FROM t1 WHERE c2 = 11; + +# ADD COLUMN BIGINT +ALTER TABLE t1 ADD COLUMN d1 BIGINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, d1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE d1 IS NULL; +SELECT d1 FROM t1 WHERE d1 = 1; + +# ADD COLUMN BIGINT DEFAULT +ALTER TABLE t1 ADD COLUMN d2 BIGINT NOT NULL DEFAULT 1234567890; +INSERT INTO t1(a, d2) VALUES(0, 1234); +SELECT count(*) = max(a) FROM t1 WHERE d2 = 1234567890; +SELECT d2 FROM t1 WHERE d2 = 1234; + +# ADD COLUMN SMALLINT +ALTER TABLE t1 ADD COLUMN e1 SMALLINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, e1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE e1 IS NULL; +SELECT e1 FROM t1 WHERE e1 = 1; + +# ADD COLUMN SMALLINT DEFAULT +ALTER TABLE t1 ADD COLUMN e2 SMALLINT NOT NULL DEFAULT 10; +INSERT INTO t1(a, e2) VALUES(0, 11); +SELECT count(*) = max(a) FROM t1 WHERE e2 = 10; +SELECT e2 FROM t1 WHERE e2 = 11; + +# ADD COLUMN TINYINT +ALTER TABLE t1 ADD COLUMN f1 TINYINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, f1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE f1 IS NULL; +SELECT f1 FROM t1 WHERE f1 = 1; + +# ADD COLUMN TINYINT DEFAULT +ALTER TABLE t1 ADD COLUMN f2 TINYINT NOT NULL DEFAULT 123; +INSERT INTO t1(a, f2) VALUES(0, 12); +SELECT count(*) = max(a) FROM t1 WHERE f2 = 123; +SELECT f2 FROM t1 WHERE f2 = 12; + +# ADD COLUMN MEDIUMINT +ALTER TABLE t1 ADD COLUMN g1 MEDIUMINT, ALGORITHM=INSTANT; +INSERT INTO t1(a, g1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE g1 IS NULL; +SELECT g1 FROM t1 WHERE g1 = 1; + +# ADD COLUMN MEDIUMINT DEFAULT +ALTER TABLE t1 ADD COLUMN g2 MEDIUMINT NOT NULL DEFAULT 12345; +INSERT INTO t1(a, g2) VALUES(0, 1234); +SELECT count(*) = max(a) FROM t1 WHERE g2 = 12345; +SELECT g2 FROM t1 WHERE g2 = 1234; + +# ADD COLUMN FLOAT +ALTER TABLE t1 ADD COLUMN h1 FLOAT, ALGORITHM=INSTANT; +INSERT INTO t1(a, h1) VALUES(0, 1.0); +SELECT count(*) = max(a) FROM t1 WHERE h1 IS NULL; +SELECT h1 FROM t1 WHERE h1 = 1; + +# ADD COLUMN FLOAT DEFAULT +ALTER TABLE t1 ADD COLUMN h2 FLOAT NOT NULL DEFAULT 12.34; +INSERT INTO t1(a, h2) VALUES(0, 1.234); +SELECT count(*) = max(a) FROM t1 WHERE h2 = 12.34; +SELECT h2 FROM t1 WHERE h2 = 1.234; + +# num of nullable fields reach 8, do a copy +ALTER TABLE t1 ADD COLUMN h3 FLOAT DEFAULT 56.78, ADD COLUMN h4 FLOAT DEFAULT 99.99, ALGORITHM=COPY; + +# ADD COLUMN DECIMAL & DOUBLE +ALTER TABLE t1 ADD COLUMN i1 DECIMAL(5, 2), ADD COLUMN i2 double, ALGORITHM=INSTANT; +INSERT INTO t1(a, i1, i2) VALUES(0, 10.10, 20.20); +SELECT count(*) = max(a) FROM t1 WHERE i1 IS NULL; +SELECT count(*) = max(a) FROM t1 WHERE i2 IS NULL; +SELECT i1 FROM t1 WHERE i1 = 10.10; +SELECT i2 FROM t1 WHERE i2 = 20.20; + +# ADD COLUMN DECIMAL & DOUBLE DEFAULT +ALTER TABLE t1 ADD COLUMN j1 DECIMAL(5, 2) NOT NULL DEFAULT 100.00, ADD COLUMN j2 double NOT NULL DEFAULT 1000.5678; +INSERT INTO t1(a, j1, j2) VALUES(0, 90.90, 1000.1234); +SELECT count(*) = max(a) FROM t1 WHERE j1 = 100.00; +SELECT count(*) = max(a) FROM t1 WHERE j2 = 1000.5678; +SELECT j1 FROM t1 WHERE j1 = 90.90; +SELECT j2 FROM t1 WHERE j2 = 1000.1234; + +# ADD COLUMN BIT +#ALTER TABLE t1 ADD COLUMN k1 BIT(8), ALGORITHM=INSTANT; +#INSERT INTO t1(a, k1) VALUES(0, b'010101'); +#SELECT count(*) = max(a) FROM t1 WHERE k1 IS NULL; +#SELECT hex(k1) FROM t1 WHERE k1 = b'010101'; + +# ADD COLUMN BIT DEFAULT +ALTER TABLE t1 ADD COLUMN k2 BIT(8) NOT NULL DEFAULT b'101010'; +INSERT INTO t1(a, k2) VALUES(0, b'110011'); +SELECT count(*) = max(a) FROM t1 WHERE k2 = b'101010'; +SELECT hex(k2) FROM t1 WHERE k2 = b'110011'; + +# ADD COLUMN CHAR & VARCHAR +ALTER TABLE t1 ADD COLUMN l1 CHAR(50), ADD COLUMN l2 VARCHAR(100), ALGORITHM=DEFAULT; +INSERT INTO t1(a, l1, l2) VALUES(0, 'ABCD EFGH', 'abcdefg hijklmn '); +SELECT count(*) = max(a) FROM t1 WHERE l2 IS NULL; +SELECT count(*) = max(a) FROM t1 WHERE l1 IS NULL; +SELECT l1 FROM t1 WHERE l1 = 'ABCD EFGH'; +SELECT l2 FROM t1 WHERE l2 = 'abcdefg hijklmn '; + +# ADD COLUMN CHAR & VARCHAR DEFAULT +ALTER TABLE t1 ADD COLUMN m1 CHAR(50) default 'The fox jumps over', ADD COLUMN m2 VARCHAR(50) DEFAULT 'The fox jumps over the lazy dog.'; +INSERT INTO t1(a, m1, m2) VALUES(0, 'over the lazy dog', 'The lazy dog jumps over the fox.'); +SELECT count(*) = max(a) FROM t1 WHERE m1 = 'The fox jumps over'; +SELECT count(*) = max(a) FROM t1 WHERE m2 like 'The fox jumps%'; +SELECT m1 FROM t1 WHERE m1 = 'over the lazy dog'; +SELECT m2 FROM t1 WHERE m2 like '%the fox.'; + +# ADD COLUMN BINARY & VARBINARY +ALTER TABLE t1 ADD COLUMN n1 BINARY(10), ADD COLUMN n2 VARBINARY(10), ALGORITHM=DEFAULT; +INSERT INTO t1(a, n1, n2) VALUES(0, 0x010203040506070809, 0x102030405060708090); +SELECT count(*) = max(a) FROM t1 WHERE n1 IS NULL; +SELECT count(*) = max(a) FROM t1 WHERE n2 IS NULL; +SELECT hex(n1) FROM t1 WHERE n1 = 0x01020304050607080900; +SELECT hex(n2) FROM t1 WHERE n2 = 0x102030405060708090; + +# ADD COLUMN BINARY & VARBINARY DEFAULT +ALTER TABLE t1 ADD COLUMN o1 BINARY(10) DEFAULT 0x11223344, ADD COLUMN o2 VARBINARY(10) DEFAULT 0x55667788; +INSERT INTO t1(a, o1, o2) VALUES(0, 0x44332211, 0x88776655); +SELECT count(*) = max(a) FROM t1 WHERE o1 = 0x11223344000000000000; +SELECT count(*) = max(a) FROM t1 WHERE o2 = 0x55667788; +SELECT hex(o1) FROM t1 WHERE o1 = 0x44332211000000000000; +SELECT hex(o2) FROM t1 WHERE o2 = 0x88776655; + +# ADD COLUMN DATETIME +ALTER TABLE t1 ADD COLUMN p1 DATETIME, ALGORITHM=DEFAULT; +INSERT INTO t1(a, p1) VALUES(0, '2017-12-31 00:00:00'); +SELECT count(*) = max(a) FROM t1 WHERE p1 IS NULL; +SELECT p1 FROM t1 WHERE p1 = '2017-12-31 00:00:00'; + +# ADD COLUMN DATETIME DEFAULT +ALTER TABLE t1 ADD COLUMN p2 DATETIME NOT NULL DEFAULT '2017-12-31 01:02:03'; +sleep 1; +SELECT count(*) = max(a) FROM t1 GROUP BY p2; +INSERT INTO t1(a, p2) VALUES(0, now()); +SELECT count(*) FROM t1 GROUP BY p2; + +# ADD COLUMN ENUM +ALTER TABLE t1 ADD COLUMN q1 ENUM ('value1','value2','value3'), ALGORITHM=INSTANT; +INSERT INTO t1(a, q1) VALUES(0, 1); +SELECT count(*) = max(a) FROM t1 WHERE q1 IS NULL; +SELECT q1 FROM t1 WHERE q1 = 1; + +# ADD COLUMN SET +ALTER TABLE t1 ADD COLUMN r1 SET ('a','b','c'), ALGORITHM=INSTANT; +INSERT INTO t1(a, r1) VALUES(0, 'a'); +SELECT count(*) = max(a) FROM t1 WHERE r1 IS NULL; +SELECT r1 FROM t1 WHERE r1 = 'a'; + +# ADD COLUMN BLOB & TEXT +ALTER TABLE t1 ADD COLUMN s1 BLOB, ADD COLUMN s2 TEXT, ALGORITHM=INSTANT; +INSERT INTO t1(a, s1, s2) VALUES(0, 0x0102030405, 'abcd qwerty'); +SELECT count(*) = max(a) FROM t1 WHERE s1 IS NULL; +SELECT count(*) = max(a) FROM t1 WHERE s2 IS NULL; +SELECT hex(s1) FROM t1 WHERE s1 = 0x0102030405; +SELECT s2 FROM t1 WHERE s2 = 'abcd qwerty'; + +# ADD COLUMN BLOB & TEXT NOT NULL +ALTER TABLE t1 ADD COLUMN u1 BLOB NOT NULL, ADD COLUMN u2 TEXT NOT NULL; +INSERT INTO t1(a, u1, u2) VALUES(0, 0x0102030405, 'abcd qwerty'); +SELECT count(*) = max(a) FROM t1 WHERE u1 = ''; +SELECT count(*) = max(a) FROM t1 WHERE u2 = ''; +SELECT hex(u1) FROM t1 WHERE u1 = 0x0102030405; +SELECT u2 FROM t1 WHERE u2 = 'abcd qwerty'; + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + +--echo # +--echo # Scenario 2: +--echo # Create a small table, add some columns instantly, along with +--echo # virtual columns +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL, ADD COLUMN d INT DEFAULT 101; + + +INSERT INTO t1(a, b, c) VALUES(0, 6, 20); +SELECT * FROM t1; + + +ALTER TABLE t1 ADD COLUMN e VARCHAR(100) DEFAULT 'ABCD EFGH', ADD COLUMN f INT DEFAULT 102; + + +INSERT INTO t1(a, c, e) VALUES(0, 20, 'Hello'), (0, 20, 'World'), (0, 20, 'Hello World'); +SELECT * FROM t1; + + +ALTER TABLE t1 ADD COLUMN g VARCHAR(100) DEFAULT 103, ADD COLUMN h BIGINT DEFAULT 10000, ADD COLUMN i BIGINT DEFAULT 10001; + + +SELECT * FROM t1; +INSERT INTO t1(a, b, c, h) VALUES(0, 7, 40, 2000), (0, 7, 40, 20000); +SELECT * FROM t1; + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + + +--echo # +--echo # Scenario 3: +--echo # Create a small table, add some columns instantly, then change +--echo # their default values, check original default values are correct +--echo # + +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; + +SELECT * FROM t1; +INSERT INTO t1(a, b, c, e) VALUES(0, 6, 200, 'Good day'), (0, 7, 300, 'Good DAY'); +SELECT * FROM t1; + +ALTER TABLE t1 ALTER COLUMN c SET DEFAULT 500; + +SELECT * FROM t1; +INSERT INTO t1(a, b) VALUES(0, 8), (0, 9); +SELECT * FROM t1; + +ALTER TABLE t1 ALTER COLUMN e SET DEFAULT 'HELLO MySQL!'; + +SELECT * FROM t1; +INSERT INTO t1(a, b) VALUES(0, 10), (0, 20); +SELECT * FROM t1; + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + + +--echo # +--echo # Scenario 4: +--echo # Create a small table, add some columns instantly, then do DML +--echo # on the table +--echo # + +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; + +UPDATE t1 SET c = 200 WHERE a > 3; +SELECT distinct(c) FROM t1; + +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; + +DELETE FROM t1 WHERE c = 100; + +UPDATE t1 SET c = 300; +SELECT distinct(c) FROM t1; + +SELECT count(*) FROM t1; + + +ALTER TABLE t1 ADD COLUMN t DATETIME DEFAULT CURRENT_TIMESTAMP; + + +UPDATE t1 SET e = 'Hello MySQL' WHERE a > 10; +UPDATE t1 SET e = 'Hello MySQL!!' WHERE a > 20; +SELECT distinct(e) FROM t1; + +UPDATE t1 SET c = 500 WHERE e LIKE '%world%'; +--sorted_result +SELECT c, e FROM t1 GROUP BY c, e; + +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +sleep 1; +UPDATE t1 SET t = CURRENT_TIMESTAMP WHERE a < 50; +SELECT count(t) FROM t1 GROUP BY t; +DELETE FROM t1 WHERE a < 50; +SELECT count(t) FROM t1 GROUP BY t; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + +--echo # +--echo # Scenario 5: +--echo # Create a small table, add some columns instantly, then do DDL +--echo # to build indexes +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; +ALTER TABLE t1 ADD KEY(c); + +ANALYZE TABLE t1; +# Replace the numbers in the output with '#' to stablize the result, after all we only care about the index picked. +--replace_column 8 # 10 # 11 # +EXPLAIN SELECT c FROM t1; + +SELECT c FROM t1 WHERE c != 100; + +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; +INSERT INTO t1(b, c, e) SELECT b, c, e FROM t1; + +UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; + +ALTER TABLE t1 ADD KEY(e); + +# Replace the numbers in the output with '#' to stablize the result, after all we only care about the index picked. +--replace_column 8 # 10 # +EXPLAIN SELECT e FROM t1; +SELECT count(e) FROM t1 WHERE e LIKE '%MySQL%'; +SELECT count(e) FROM t1 WHERE e LIKE '%world%'; + +ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(a, c); +sorted_result; +SELECT a, c, e FROM t1 WHERE a > 25 AND a < 40; + +ALTER TABLE t1 ADD COLUMN f VARCHAR(1024) DEFAULT 'Foo Bar'; +INSERT INTO t1(b, c, e,f ) SELECT b, c, e,f FROM t1; +sorted_result; +SELECT a, c, e,f FROM t1 WHERE a > 25 AND a < 40; + +ALTER TABLE t1 ADD COLUMN g VARCHAR(1024) DEFAULT '------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------', algorithm=instant; +INSERT INTO t1(b, c, e,f, g) SELECT b, c, e,f,g FROM t1; +SELECT a, c, e, f, g FROM t1 WHERE a > 25 AND a < 40; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + + +--echo # +--echo # Scenario 6: +--echo # Create a small table, add some columns instantly, then do DML +--echo # on the table, and some simple rollback +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100, ADD COLUMN d INT DEFAULT 101, ADD COLUMN e VARCHAR(100) DEFAULT 'Hello world'; + + +START TRANSACTION; + +INSERT INTO t1(a, b) VALUES(0, 6); + +SELECT * FROM t1; + +ROLLBACK; + +SELECT * FROM t1; + + +START TRANSACTION; + +UPDATE t1 SET c = 500 WHERE a = 1; + +UPDATE t1 SET b = 1000 WHERE a = 2; + +SELECT a, b, c FROM t1 WHERE a = 1 OR a = 2; + +ROLLBACK; + +SELECT a, b, c FROM t1; + + +START TRANSACTION; + +DELETE FROM t1 WHERE a < 5; + +INSERT INTO t1(a, b) VALUES(0, 6); + +SELECT * FROM t1; + +ROLLBACK; + +SELECT * FROM t1; + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +# One interesting pessimistic update rollback + +--eval CREATE TABLE t1(id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000)) + +INSERT INTO t1 VALUES(1, repeat('a', 4000), repeat('b', 4000), repeat('c', 1)); + +SELECT id, length(c1), length(c2), length(c3) FROM t1; + +ALTER TABLE t1 ADD COLUMN c4 VARCHAR(500) NOT NULL DEFAULT 'dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'; + + +SELECT id, length(c1), length(c2), length(c3), length(c4) FROM t1; + +START TRANSACTION; + +UPDATE t1 SET c1 = repeat('x', 200) WHERE id = 1; + +ROLLBACK; + +SELECT id, length(c1), length(c2), length(c3), length(c4) FROM t1; + +START TRANSACTION; + +UPDATE t1 SET c4 = 'x' WHERE id = 1; + +ROLLBACK; + +SELECT id, length(c1), length(c2), length(c3), length(c4) FROM t1; + +DROP TABLE t1; + + + +--echo # +--echo # Scenario 7: +--echo # Confirm some ADD COLUMN are instant, some are not +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN after LAST should be INSTANT +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 100 AFTER b; + + +# ADD COLUMN in the middle should not be instant +ALTER TABLE t1 ADD COLUMN d INT NOT NULL DEFAULT 100 AFTER b; + + + +# ADD COLUMN with ADD KEY should not be instant +ALTER TABLE t1 ADD COLUMN e INT NOT NULL DEFAULT 100, ADD KEY(e); + + + +# FORCE key word should not be instant +ALTER TABLE t1 ADD COLUMN f INT NOT NULL DEFAULT 100, FORCE; + + + +# ALGORITHM=INPLACE should not be instant, verify again here +--error 1845 +ALTER TABLE t1 ADD COLUMN g INT NOT NULL DEFAULT 100, ALGORITHM=INPLACE; + + + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + +# MyRocks doesn't support FULLTEXT +#--echo # +#--echo # Scenario 8: +#--echo # Instant ADD COLUMN on partitioned table, only simple test here +#--echo # +#--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT, c TEXT, FULLTEXT(c)) +#INSERT INTO t1 VALUES(0, 1, 'Hello'), (0, 2, 'HELLO'), (0, 3, 'World'), (0, 4, 'Hello world'), (0, 5, 'HELLO WORLD'); +# ADD COLUMN to FULLTEXT table should not be instant +#ALTER TABLE t1 ADD COLUMN d INT NOT NULL DEFAULT 100 AFTER b; +#DROP TABLE t1; + + +--echo # +--echo # Scenario 9: +--echo # Instant ADD COLUMN on partitioned table, only simple test here +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) PARTITION BY HASH(a) PARTITIONS 3; + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; + + +SELECT * FROM t1; + +INSERT INTO t1 VALUES(0, 9, 10), (0, 10, 20); + +SELECT * FROM t1 WHERE b > 8; + +UPDATE t1 SET c = 8 WHERE a = 1 OR a = 3 OR a = 5 OR a = 7; + +SELECT * FROM t1; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +# Check instant ADD COLUMN and then common ALTER TABLE and then instant ADD COLUMN + +--eval CREATE TABLE t1 (a INT, b INT) PARTITION BY HASH(a) PARTITIONS 2; + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; + + +ALTER TABLE t1 CHANGE COLUMN c c1 INT; + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; + + +DROP TABLE t1; + + +--echo # +--echo # Scenario 10: +--echo # EXCHANGE PARTITION is not allowed if either is instant +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) ; + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; + + +--eval CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT, c INT NOT NULL DEFAULT 5) PARTITION BY RANGE (a) (PARTITION p1 VALUES LESS THAN (10), PARTITION p2 VALUES LESS THAN (20), PARTITION p3 VALUES LESS THAN (30)); + +# t1 is instant table, so should fail +# --error ER_PARTITION_EXCHANGE_DIFFERENT_OPTION +--error 1505 +ALTER TABLE t2 EXCHANGE PARTITION p1 WITH TABLE t1; + +# Make t2 an instant table +ALTER TABLE t2 ADD COLUMN d INT; + +# Make t1 a non-instant table +ALTER TABLE t1 ADD COLUMN d INT, ALGORITHM=COPY; + +# myrocks partition doesn't support exchange partition +# t2 is instant table, so should fail +# --error ER_PARTITION_EXCHANGE_DIFFERENT_OPTION +--error 1505 +ALTER TABLE t2 EXCHANGE PARTITION p1 WITH TABLE t1; + +OPTIMIZE TABLE t2; +SHOW CREATE TABLE t1; +SHOW CREATE TABLE t2; +# Now this should succeed +# myrocks partition doesn't support exchange partition +--error 1505 +ALTER TABLE t2 EXCHANGE PARTITION p1 WITH TABLE t1; + +DROP TABLE t1, t2; + + +--echo # +--echo # Scenario 11: +--echo # PRIMARY KEY with more than one column, at least to verify it works with REDUDANT +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL, PRIMARY KEY(a, b)) ; + +INSERT INTO t1 VALUES(0, 1), (1, 2), (2, 3), (3, 4); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; + + +SELECT * FROM t1; +UPDATE t1 SET c = b WHERE b <= 2; + +CHECK TABLE t1; +SELECT * FROM t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 12: +--echo # Mix ALTER PARTITION and ALTER TABLE ... INPLACE. This is to check if first partition is not +--echo # instant after ALTER PARTITION, will the metadata be copied correctly +--echo # + +--eval CREATE TABLE t1 (col1 INT, col2 INT, col3 INT, col4 TEXT) ENGINE = RocksDB PARTITION BY RANGE(col1 * 2) ( PARTITION p0 VALUES LESS THAN (128), PARTITION p1 VALUES LESS THAN (256) , PARTITION p2 VALUES LESS THAN (384) , PARTITION p3 VALUES LESS THAN MAXVALUE); + +INSERT INTO t1 VALUES(1, 2, 3, 'abcdefg'), (100, 200, 300, 'qwerty'), (200, 300, 400, 'asdfg'); + +ALTER TABLE t1 ALGORITHM DEFAULT, ADD COLUMN col5 VARCHAR(500), ADD COLUMN col6 TEXT; + + + +--error 1845 +ALTER TABLE t1 ALGORITHM INPLACE, REORGANIZE PARTITION p0 INTO (PARTITION p0_a VALUES LESS THAN (64), PARTITION p0_b VALUES LESS THAN (128)); +CHECK TABLE t1; + +ALTER TABLE t1 ALGORITHM DEFAULT, ADD KEY idx4(col4(10)); +CHECK TABLE t1; + +--error 1507 +ALTER TABLE t1 ALGORITHM DEFAULT, LOCK EXCLUSIVE, REORGANIZE PARTITION p0_a, p0_b INTO (PARTITION p0 VALUES LESS THAN (128)); +CHECK TABLE t1; + +ALTER TABLE t1 ADD KEY idx3(col3); +CHECK TABLE t1; + +SELECT * FROM t1; + +DROP TABLE t1; + + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) PARTITION BY HASH(a) PARTITIONS 3; + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8); + +ALTER TABLE t1 ADD COLUMN c INT NOT NULL DEFAULT 5; + + + +ALTER TABLE t1 ADD PARTITION PARTITIONS 10; +CHECK TABLE t1; + +ALTER TABLE t1 ADD KEY(b); +CHECK TABLE t1; + +SELECT * FROM t1; + +DROP TABLE t1; + + + +--echo # +--echo # Scenario 13: +--echo # Create a table with a two level clustered index, do instant ADD COLUMN, then the non-leaf node +--echo # should be parsed correctly +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, d INT NOT NULL, b BLOB NOT NULL, c VARCHAR(87), INDEX(d), INDEX(a ASC), PRIMARY KEY (a, d, c)) PARTITION BY LINEAR KEY(c) PARTITIONS 9; + +INSERT INTO t1(d, b, c) VALUES(1, 2, 'aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(2, 3, 'aaaaaaaaaahhhhhhhhhhbbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(3, 4, 'bbbbbbbbbbaaaaaaaaaahhhhhhhhhhccccccccccddddddddddeeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(4, 5, 'eeeeeeeeeehhhhhhhhhhbbbbbbbbbbccccccccccddddddddddaaaaaaaaaaffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(5, 6, 'aaaaaaaaaahhhhhhhhhhbbbbbbbbbbddddddddddcccccccccceeeeeeeeeeffffffffffggggggggggjjjjjjj'); +INSERT INTO t1(d, b, c) VALUES(6, 7, 'cccccccccchhhhhhhhhhbbbbbbbbbbaaaaaaaaaaddddddddddeeeeeeeeeeffffffffffggggggggggjjjjjjj'); + +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; +INSERT INTO t1(d, b, c) SELECT d, b, c FROM t1; + +ALTER TABLE t1 ADD COLUMN nc086 BIGINT NOT NULL FIRST, ALGORITHM=COPY, LOCK=DEFAULT; +CHECK TABLE t1; + +ALTER TABLE t1 ADD COLUMN nc082 TINYTEXT; + +CHECK TABLE t1; + +SELECT COUNT(*) FROM t1; + +DROP TABLE t1; + + +# MyRocks doesn't support GEOMETRY +#--echo # +#--echo # Scenario 14: +#--echo # Create a small table, and add GIS kinds of new columns and verify +#--echo # +# +#--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) +# +#INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +# +## ADD COLUMN POINT +#ALTER TABLE t1 ADD COLUMN c1 POINT, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, c1) VALUES(0, ST_PointFromText('POINT(10 10)')); +#SELECT count(*) = max(a) FROM t1 WHERE c1 IS NULL; +# +## ADD COLUMN LINESTRING +#ALTER TABLE t1 ADD COLUMN d1 LINESTRING, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, d1) VALUES(0, ST_LineFromText('LINESTRING(0 0,0 10,10 0)')); +#SELECT count(*) = max(a) FROM t1 WHERE d1 IS NULL; +# +## ADD COLUMN POLYGON +#ALTER TABLE t1 ADD COLUMN e1 POLYGON, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, e1) VALUES(0, ST_PolygonFromText('POLYGON((10 10,20 10,20 20,10 20,10 10))')); +#SELECT count(*) = max(a) FROM t1 WHERE e1 IS NULL; +# +## ADD COLUMN MULTIPOINT +#ALTER TABLE t1 ADD COLUMN f1 MULTIPOINT, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, f1) VALUES(0, ST_MultiPointFromText('MULTIPOINT(0 0,10 10,10 20,20 20)')); +#SELECT count(*) = max(a) FROM t1 WHERE f1 IS NULL; +# +## ADD COLUMN MULTILINESTRING +#ALTER TABLE t1 ADD COLUMN g1 MULTILINESTRING, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, g1) VALUES(0, ST_MultiLineStringFromText('MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))')); +#SELECT count(*) = max(a) FROM t1 WHERE g1 IS NULL; +# +## ADD COLUMN MULTIPOLYGON +#ALTER TABLE t1 ADD COLUMN h1 MULTIPOLYGON, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, h1) VALUES(0, ST_MultiPolygonFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')); +#SELECT count(*) = max(a) FROM t1 WHERE h1 IS NULL; +# +# +## ADD COLUMN GEOMETRYCOLLECTION +#ALTER TABLE t1 ADD COLUMN i1 GEOMETRYCOLLECTION, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, i1) VALUES(0, ST_GeomCollFromText('GEOMETRYCOLLECTION(POINT(0 0), LINESTRING(0 0,10 10))')); +#SELECT count(*) = max(a) FROM t1 WHERE i1 IS NULL; +# +# +## ADD COLUMN GEOMETRY +#ALTER TABLE t1 ADD COLUMN j1 GEOMETRY, ALGORITHM = INSTANT; +# +# +# +#INSERT INTO t1(a, j1) VALUES(0, ST_GeomCollFromText('GEOMETRYCOLLECTION(POINT(0 0), LINESTRING(0 0,10 10))')); +#SELECT count(*) = max(a) FROM t1 WHERE j1 IS NULL; +# +#CHECK TABLE t1; +# +#SHOW CREATE TABLE t1; +# +#DROP TABLE t1; + +--echo # +--echo # Scenario 15: +--echo # Create a small table, and add JSON columns and verify +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN JSON +ALTER TABLE t1 ADD COLUMN c1 JSON, ALGORITHM = INSTANT; + + + +INSERT INTO t1(a, c1) VALUES(0, '{"key1": "value1", "key2": "value2"}'); +SELECT count(*) = max(a) FROM t1 WHERE c1 IS NULL; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 16: +--echo # Create a small table, and add INSTANT columns and verify with trigger +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) +--eval CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +INSERT INTO t2 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + + + +# TRIGGERS AFTER INSERT INTO ADDED COLUMN +CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW + INSERT INTO t2 VALUES(0,6); + +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +DROP TRIGGER t1_ai; + + +# ADD COLUMN +ALTER TABLE t2 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'cccc', ALGORITHM = INSTANT; + + + +# INSERT ROW INTO ADDED COLUMN USING TRIGGER +CREATE TRIGGER t2_ai AFTER INSERT ON t2 FOR EACH ROW + INSERT INTO t1(a,c1) VALUES(0,'eeee'); + +INSERT INTO t2(a, c1) VALUES(0, 'dddd'); +SELECT count(*) = max(a) FROM t2 WHERE c1='cccc'; +SELECT c1 FROM t2 WHERE c1 = 'dddd'; +DROP TRIGGER t2_ai; + + +CHECK TABLE t1; +CHECK TABLE t2; + +SHOW CREATE TABLE t1; +SHOW CREATE TABLE t2; + +DROP TABLE t1,t2; + + +--echo # +--echo # Scenario 17: +--echo # Create a small table, and add INSTANT columns and verify with storedprocedure +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + + + +# STORED PROCEDURE +CREATE PROCEDURE p1() INSERT INTO t1(a,c1) VALUES(0, 'bbbb'); +CALL p1(); + +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +DROP PROCEDURE p1; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 18: +--echo # Create a small table, and add INSTANT columns and verify with view +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + + + +# CREATE VIEW +CREATE VIEW v1 AS SELECT * FROM t1; + +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; +SELECT * FROM v1; +DROP VIEW v1; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 19: +--echo # Create a small table, and add INSTANT columns and drop it and verify +--echo # + +--eval CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT) + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + + + +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; + +# DROP COLUMN +ALTER TABLE t1 DROP COLUMN c1; + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 20: +--echo # Create a small table, and add INSTANT columns and rename table +--echo # + +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + + +ALTER TABLE t1 RENAME t2; + +INSERT INTO t2(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t2 WHERE c1='aaaa'; +SELECT c1 FROM t2 WHERE c1 = 'bbbb'; + +CHECK TABLE t2; + +SHOW CREATE TABLE t2; + +DROP TABLE t2; + + +--echo # +--echo # Scenario 21: +--echo # Create a small table, and add INSTANT columns and change its data type INSTANTly won't work +--echo # +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + + +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; + +# change added column datatype should not be instant +ALTER TABLE t1 CHANGE c1 c2 CHAR(10) NOT NULL DEFAULT 'cccc'; + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 22: +--echo # Create a small table, and add INSTANT columns and create hash,btree multi column index and verify +--echo # +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; + +# CREATE INDEX +CREATE INDEX id1 ON t1(c1) USING BTREE; +CREATE INDEX id2 ON t1(c1) USING HASH; + +INSERT INTO t1(a, c1) VALUES(0, 'bbbb'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'bbbb'; + +DROP INDEX id1 ON t1; +DROP INDEX id2 ON t1; + +# ADD ANOTHER COLUMN +ALTER TABLE t1 ADD COLUMN c2 VARCHAR(10) NOT NULL DEFAULT 'cccc', ALGORITHM = INSTANT; + +# CREATE INDEX +CREATE INDEX id1 ON t1(c1 ASC,c2 ASC); + +INSERT INTO t1(a, c2) VALUES(0, 'dddd'); +SELECT count(*) = max(a) FROM t1 WHERE c1='cccc'; +SELECT c1 FROM t1 WHERE c1 = 'dddd'; + +# RENAME INDEX +ALTER TABLE t1 RENAME INDEX id1 TO id2; + +DROP INDEX id2 ON t1; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + + +--echo # +--echo # Scenario 23: +--echo # Create a small table, and add INSTANT columns and perform table join operation +--echo # +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); +CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); +INSERT INTO t2 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +# ADD COLUMN TO TABLE t1 +ALTER TABLE t1 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'aaaa', ALGORITHM = INSTANT; +INSERT INTO t1(a, c1) VALUES(0, 'cccc'); +SELECT count(*) = max(a) FROM t1 WHERE c1='aaaa'; +SELECT c1 FROM t1 WHERE c1 = 'cccc'; + +# ADD COLUMN TO TABLE t2 +ALTER TABLE t2 ADD COLUMN c1 VARCHAR(10) NOT NULL DEFAULT 'bbbb', ALGORITHM = INSTANT; +INSERT INTO t2(a, c1) VALUES(0, 'cccc'); +SELECT count(*) = max(a) FROM t2 WHERE c1='bbbb'; +SELECT c1 FROM t2 WHERE c1 = 'cccc'; + +SELECT * FROM t1 JOIN t2 ON t1.c1=t2.c1; + +CHECK TABLE t1; +CHECK TABLE t2; + +SHOW CREATE TABLE t1; +SHOW CREATE TABLE t2; + +DROP TABLE t1; +DROP TABLE t2; + + +--echo # +--echo # Scenario 24: +--echo # Create a small table, and add stored and(or) virtual columns +--echo # after last stored column in the table +--echo # +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT, c INT, d INT DEFAULT 101, e INT DEFAULT 102); +INSERT INTO t1(a, b, c) VALUES(0, 1, 2), (0, 2, 3), (0, 3, 4), (0, 4, 5), (0, 5, 6); + +ALTER TABLE t1 ADD COLUMN h INT NOT NULL AFTER c; + +INSERT INTO t1(a, b, c, h) VALUES(0, 6, 20, 40); +SELECT * FROM t1; + +ALTER TABLE t1 ADD COLUMN i VARCHAR(100) DEFAULT 'ABCD EFGH' AFTER h, ADD COLUMN f INT DEFAULT 12 AFTER i; + +INSERT INTO t1(a, b, c, h, i) VALUES(0, 20, 30, 50, 'qwerty'); +SELECT * FROM t1; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + +--echo # +--echo # Scenario 25: +--echo # bypass query +--echo # +SELECT @@rocksdb_select_bypass_policy; +SELECT @@rocksdb_select_bypass_policy INTO @save_rocksdb_select_bypass_policy; + +CREATE TABLE `t1` ( + `id1` bigint(20) unsigned NOT NULL DEFAULT '0' , + `id1_type` int(10) unsigned NOT NULL DEFAULT '0' , + `id2` bigint(20) unsigned NOT NULL DEFAULT '0' , + `id2_type` int(10) unsigned NOT NULL DEFAULT '0' , + `link_type` bigint(20) unsigned NOT NULL DEFAULT '0' , + `visibility` tinyint(3) NOT NULL DEFAULT '0' , + `data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '' , + `time` int(10) unsigned NOT NULL DEFAULT '0' , + `version` bigint(20) unsigned NOT NULL DEFAULT '0' , + PRIMARY KEY (`link_type` , `id1` , `id2`) COMMENT 'cf_link' , + KEY `id1_type` (`id1` , `link_type` , `visibility` , `time` , `id2` , + `version` , `data`) COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +insert into t1 values (1, 1, 1, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (1, 1, 2, 2, 3, 3, 'a10', 10, 125); +insert into t1 values (1, 1, 3, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (1, 1, 4, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (1, 1, 5, 2, 3, 3, 'a12', 12, 125); +insert into t1 values (1, 1, 6, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (1, 1, 7, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (1, 1, 8, 2, 3, 4, 'a13', 13, 125); +insert into t1 values (1, 1, 9, 2, 3, 4, 'a14', 14, 125); +insert into t1 values (1, 1, 10, 2, 3, 4, 'a15', 15, 125); +insert into t1 values (2, 1, 1, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 2, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 3, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 4, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 5, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 6, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 7, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 8, 2, 3, 4, 'a13', 13, 125); +insert into t1 values (2, 1, 9, 2, 3, 4, 'a14', 14, 125); +insert into t1 values (2, 1, 10, 2, 3, 4, 'a15', 15, 125); +insert into t1 values (2, 1, 1, 2, 4, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 2, 2, 4, 4, 'a10', 10, 125); +insert into t1 values (2, 1, 3, 2, 4, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 4, 2, 4, 4, 'a11', 11, 125); +insert into t1 values (2, 1, 5, 2, 4, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 6, 2, 4, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 7, 2, 4, 4, 'a12', 12, 125); +insert into t1 values (2, 1, 8, 2, 4, 4, 'a13', 13, 125); +insert into t1 values (2, 1, 9, 2, 4, 4, 'a14', 14, 125); +insert into t1 values (2, 1, 10, 2, 4, 4, 'a15', 15, 125); +insert into t1 values (3, 1, 10, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (3, 1, 9, 2, 3, 4, 'a10', 10, 125); +insert into t1 values (3, 1, 8, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (3, 1, 7, 2, 3, 4, 'a11', 11, 125); +insert into t1 values (3, 1, 6, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (3, 1, 5, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (3, 1, 4, 2, 3, 4, 'a12', 12, 125); +insert into t1 values (3, 1, 3, 2, 3, 4, 'a13', 13, 125); +insert into t1 values (3, 1, 2, 2, 3, 4, 'a14', 14, 125); +insert into t1 values (3, 1, 1, 2, 3, 4, 'a15', 15, 125); +insert into t1 values (9, 1, 9, 2, 5, 6, '0 ', 10, 125); +insert into t1 values (9, 1, 8, 2, 5, 6, '01 ', 11, 125); +insert into t1 values (9, 1, 7, 2, 5, 6, '012 ', 11, 125); +insert into t1 values (9, 1, 6, 2, 5, 6, '0123 ', 12, 125); +insert into t1 values (9, 1, 5, 2, 5, 6, '01234 ', 12, 125); +insert into t1 values (9, 1, 4, 2, 5, 6, '012345 ', 12, 125); +insert into t1 values (9, 1, 3, 2, 5, 6, '0123456 ', 13, 125); +insert into t1 values (9, 1, 2, 2, 5, 6, '01234567 ', 14, 125); +insert into t1 values (9, 1, 1, 2, 5, 6, '012345678 ', 15, 125); +insert into t1 values (9, 1, 0, 2, 5, 6, '0123456789 ', 15, 125); + +ALTER TABLE t1 ADD COLUMN version2 bigint(20) unsigned NOT NULL DEFAULT 99, algorithm = instant; +insert into t1 values (10, 1, 9, 2, 5, 6, '0 ', 10, 125, 128); +insert into t1 values (10, 1, 8, 2, 5, 6, '01 ', 11, 125, 128); +insert into t1 values (10, 1, 7, 2, 5, 6, '012 ', 11, 125, 128); +insert into t1 values (10, 1, 6, 2, 5, 6, '0123 ', 12, 125, 128); +insert into t1 values (10, 1, 5, 2, 5, 6, '01234 ', 12, 125, 128); +insert into t1 values (10, 1, 4, 2, 5, 6, '012345 ', 12, 125, 128); +insert into t1 values (10, 1, 3, 2, 5, 6, '0123456 ', 13, 125, 128); +insert into t1 values (10, 1, 2, 2, 5, 6, '01234567 ', 14, 125, 128); +insert into t1 values (10, 1, 1, 2, 5, 6, '012345678 ', 15, 125, 128); +insert into t1 values (10, 1, 0, 2, 5, 6, '0123456789 ', 15, 125, 128); + +SELECT @@rocksdb_select_bypass_policy; +SET GLOBAL rocksdb_select_bypass_policy=1; +SELECT @@rocksdb_select_bypass_policy; + +SELECT variable_value INTO @a FROM performance_schema.global_status WHERE +variable_name="rocksdb_select_bypass_executed"; + +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +SELECT /*+ abc */ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +SELECT /*+ no_bypass*/ id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +SELECT id1,id2,id1_type,id2_type,data,version FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; + +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +SELECT /*+ abc */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +SELECT /*+ no_bypass*/ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; +SELECT id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=3; + +SELECT /*+ bypass */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +SELECT /*+ abc */ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +SELECT /*+ no_bypass*/ id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; +SELECT id1,id2,id1_type,id2_type,data,version, version2 FROM t1 +WHERE id1=1 AND id2=2 AND link_type=5; + +SELECT variable_value INTO @b FROM performance_schema.global_status WHERE +variable_name="rocksdb_select_bypass_executed"; + +--echo # Should be 12 +SELECT @b-@a; +SELECT @@rocksdb_select_bypass_policy; +set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; +SELECT @@rocksdb_select_bypass_policy; + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + +# cleanup +set global rocksdb_disable_instant_ddl = @saved_rocksd_instant_ddl; diff --git a/mysql-test/suite/rocksdb/t/instant_add_column_clear_debug.test b/mysql-test/suite/rocksdb/t/instant_add_column_clear_debug.test new file mode 100644 index 000000000000..fc9aa39f5019 --- /dev/null +++ b/mysql-test/suite/rocksdb/t/instant_add_column_clear_debug.test @@ -0,0 +1,49 @@ +--source include/have_debug.inc +--let $check_dd = 1 +set @saved_rocksd_instant_ddl=@@global.rocksdb_disable_instant_ddl; +set global rocksdb_disable_instant_ddl = false; + +--echo # +--echo # Scenario 1: +--echo # Create a normal table, rebuild and truncate will clear the instant +--echo # information +--echo # + +CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT); + +INSERT INTO t1 VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + + +let $new_cols = 1; +let $instant_add_column = ALTER TABLE t1 ADD COLUMN c1 INT DEFAULT 10; + +--source ../mysql-test/suite/rocksdb/include/instant_add_column_exec_and_verify.inc + +# An ALTER TABLE which requires rebuild +let $new_cols = 1; +let $instant_add_column = ALTER TABLE t1 ADD COLUMN c2 INT DEFAULT 20, ADD KEY(c2); + +--source ../mysql-test/suite/rocksdb/include/instant_add_column_exec_and_verify.inc + + +# INSERT INTO t1(a, b) VALUES(0, 1), (0, 2), (0, 3), (0, 4), (0, 5); + +let $new_cols = 1; +let $instant_add_column = ALTER TABLE t1 ADD COLUMN c3 INT DEFAULT 10; + +--source ../mysql-test/suite/rocksdb/include/instant_add_column_exec_and_verify.inc + +# TRUNCATE TABLE should rebuild the table too +let $new_cols = 1; +let $instant_add_column = TRUNCATE TABLE t1; + +--source ../mysql-test/suite/rocksdb/include/instant_add_column_exec_and_verify.inc + + +CHECK TABLE t1; + +SHOW CREATE TABLE t1; + +DROP TABLE t1; + +set global rocksdb_disable_instant_ddl = @saved_rocksd_instant_ddl; diff --git a/mysql-test/suite/rocksdb/t/instant_add_column_dd_debug.test b/mysql-test/suite/rocksdb/t/instant_add_column_dd_debug.test index c3a96698a9d9..41f2665b83ec 100644 --- a/mysql-test/suite/rocksdb/t/instant_add_column_dd_debug.test +++ b/mysql-test/suite/rocksdb/t/instant_add_column_dd_debug.test @@ -1,4 +1,7 @@ # Check DD tables during debug execution +# copy test scenarios from innodb instant DDL test +# mysql-test/suite/innodb/include/instant_add_column_basic.inc +# --source include/have_debug.inc --let $check_dd = 1 set @saved_rocksd_instant_ddl=@@global.rocksdb_disable_instant_ddl; @@ -74,7 +77,7 @@ let $instant_add_column = ALTER TABLE t1 ADD COLUMN h2 FLOAT NOT NULL DEFAULT 12 # ADD COLUMN DECIMAL & DOUBLE let $new_cols = 2; -let $instant_add_column = ALTER TABLE t1 ADD COLUMN i1 DECIMAL(5, 2), ADD COLUMN i2 double, ALGORITHM=INSTANT; +let $instant_add_column = ALTER TABLE t1 ADD COLUMN i1 DECIMAL(5, 2), ADD COLUMN i2 double; --source ../mysql-test/suite/rocksdb/include/instant_add_column_exec_and_verify.inc # ADD COLUMN DECIMAL & DOUBLE DEFAULT diff --git a/mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.cnf b/mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.cnf new file mode 100644 index 000000000000..1554b2f1dca5 --- /dev/null +++ b/mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.cnf @@ -0,0 +1,12 @@ +!include suite/rocksdb_rpl/my.cnf + +[mysqld.1] +binlog_format=row +enable_rocksdb_intrinsic_tmp_table= ON +loose-rocksdb_enable_tmp_table = ON + +[mysqld.2] +binlog_format=row +enable_rocksdb_intrinsic_tmp_table= ON +loose-rocksdb_enable_tmp_table = ON + diff --git a/mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.test b/mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.test new file mode 100644 index 000000000000..bf55ac2b5abd --- /dev/null +++ b/mysql-test/suite/rocksdb/t/instant_add_column_intrinsic_table.test @@ -0,0 +1,70 @@ +set @saved_rocksdb_instant_ddl=@@global.rocksdb_disable_instant_ddl; +set global rocksdb_disable_instant_ddl = false; + +--echo # +--echo # query use intrinsic table +--echo # +create table ten(a int primary key); +insert into ten values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); + +create table one_k(a int primary key); +insert into one_k select A.a + B.a* 10 + C.a * 100 from ten A, ten B, ten C; + +create table t1 ( + pk int primary key, + key1 varchar(32) CHARACTER SET utf8 COLLATE utf8_bin, + filler varchar(32), + key (key1) +); + +insert into t1 select a,a,a from one_k; + +ALTER table t1 add column c1 int default 99; +INSERT into t1 select 1000 + a, a, a, a from one_k; + +explain SELECT DISTINCT filler from t1 order by filler limit 10; +SELECT DISTINCT filler from t1 order by filler limit 10; + +--echo # +--echo # temp table +--echo # +CREATE TEMPORARY TABLE t2 select * from t1; +explain SELECT DISTINCT filler from t2 order by filler limit 10; +SELECT DISTINCT filler from t2 order by filler limit 10; + +DROP TABLE t1, t2; +DROP TABLE ten; +DROP TABLE one_k; + +--echo # +--echo # temp table +--echo # +CREATE TABLE `t1` (`c1` INT, `c2` INT, `c3` CHAR(255), `c4` CHAR(255)); +INSERT INTO t1 VALUES +(1,1,'t1','t1'), (2,2,'t1','t1'), (3,3,'t1','t1'), (4,4,'t1','t1'), (5,5,'t1','t1'), +(6,6,'t1','t1'), (7,7,'t1','t1'), (8,8,'t1','t1'), (9,9,'t1','t1'), (10,10,'t1','t1'), +(11,11,'t1','t1'), (12,12,'t1','t1'), (13,13,'t1','t1'), (14,14,'t1','t1'), (15,15,'t1','t1'), +(16,16,'t1','t1'), (17,17,'t1','t1'), (18,18,'t1','t1'), (19,19,'t1','t1'), (20,20,'t1','t1'), +(21,21,'t1','t1'), (22,22,'t1','t1'), (23,23,'t1','t1'), (24,24,'t1','t1'), (25,25,'t1','t1'); + +# Set minimum values for memory limits to force a disk migration of +# in-memory temp tables +SET @@session.max_heap_table_size=16*1024; +SET @@session.tmp_table_size=1024; +SET optimizer_switch="derived_condition_pushdown=off"; + +# Expecting same result set with MEMORY and TempTable storage +SET SESSION internal_tmp_mem_storage_engine=MEMORY; +SELECT * FROM (SELECT c2, c3, c4, SUM(c1) OVER (PARTITION BY c2) AS wcol FROM t1)o WHERE c2=10; +SET SESSION internal_tmp_mem_storage_engine=TempTable; +SELECT * FROM (SELECT c2, c3, c4, SUM(c1) OVER (PARTITION BY c2) AS wcol FROM t1)o WHERE c2=10; + +#cleanup +SET optimizer_switch=default; +SET @@session.max_heap_table_size=default; +SET @@session.tmp_table_size=default; +SET @@session.internal_tmp_mem_storage_engine=default; +DROP TABLE t1; + +set global rocksdb_disable_instant_ddl = @saved_rocksdb_instant_ddl; + diff --git a/sql/partitioning/partition_base.cc b/sql/partitioning/partition_base.cc index d35ca4132077..328ff26e52d0 100644 --- a/sql/partitioning/partition_base.cc +++ b/sql/partitioning/partition_base.cc @@ -4015,6 +4015,11 @@ enum_alter_inplace_result Partition_base::check_if_supported_inplace_alter( enum_alter_inplace_result p_result = m_file[index]->check_if_supported_inplace_alter(altered_table, ha_alter_info); + /* TODO: Enable instant DDL on partition for myrocks */ + if (p_result == HA_ALTER_INPLACE_INSTANT) { + DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED); + } + part_inplace_ctx->handler_ctx_array[index] = ha_alter_info->handler_ctx; if (index == 0) { diff --git a/storage/rocksdb/ha_rocksdb.cc b/storage/rocksdb/ha_rocksdb.cc index 94a8727e620b..675c4e4ba4eb 100644 --- a/storage/rocksdb/ha_rocksdb.cc +++ b/storage/rocksdb/ha_rocksdb.cc @@ -52,6 +52,7 @@ #include "my_sys.h" #include "scope_guard.h" #include "sql/binlog.h" +#include "sql/dd/cache/dictionary_client.h" // dd::cache::Dictionary_client #include "sql/debug_sync.h" #include "sql/json_dom.h" #include "sql/sql_audit.h" @@ -819,7 +820,7 @@ static unsigned long long // NOLINT(runtime/int) static bool rocksdb_skip_locks_if_skip_unique_check = false; static bool rocksdb_alter_column_default_inplace = false; static bool rocksdb_alter_table_comment_inplace = false; -static bool rocksdb_disable_instant_ddl = false; +bool rocksdb_disable_instant_ddl = false; bool rocksdb_enable_tmp_table = false; bool rocksdb_enable_delete_range_for_drop_index = false; @@ -7961,7 +7962,7 @@ int ha_rocksdb::open(const char *const name, init_with_fields(); /* Initialize decoder */ - m_converter.reset(new Rdb_converter(ha_thd(), m_tbl_def, table)); + m_converter.reset(new Rdb_converter(ha_thd(), m_tbl_def, table, table_def)); /* Update m_ttl_bytes address to same as Rdb_converter's m_ttl_bytes. @@ -9188,7 +9189,8 @@ int ha_rocksdb::truncate_table(Rdb_tbl_def *tbl_def_arg, /* Update the local m_tbl_def reference */ m_tbl_def = ddl_manager.find(orig_tablename); - m_converter.reset(new Rdb_converter(ha_thd(), m_tbl_def, table_arg)); + m_converter.reset( + new Rdb_converter(ha_thd(), m_tbl_def, table_arg, table_def)); DBUG_RETURN(err); } @@ -11542,9 +11544,17 @@ int ha_rocksdb::index_init(uint idx, bool sorted MY_ATTRIBUTE((__unused__))) { active_index = idx; if (idx != table->s->primary_key && m_key_descr_arr[idx]->is_partial_index()) { + const dd::Table *dd_table = nullptr; + dd::cache::Dictionary_client *dd_client = thd->dd_client(); + dd::cache::Dictionary_client::Auto_releaser releaser(dd_client); + if (!rocksdb_disable_instant_ddl && + dd_client->acquire(table->s->db.str, table->s->table_name.str, + &dd_table)) { + DBUG_RETURN(HA_ERR_ROCKSDB_INVALID_TABLE); + } m_iterator.reset( new Rdb_iterator_partial(thd, m_key_descr_arr[active_index_pos()], - m_pk_descr, m_tbl_def, table)); + m_pk_descr, m_tbl_def, table, dd_table)); } else { m_iterator.reset(new Rdb_iterator_base( thd, m_key_descr_arr[active_index_pos()], m_pk_descr, m_tbl_def)); @@ -11976,7 +11986,23 @@ void ha_rocksdb::encode_autogenerated_pk(const longlong hidden_pk_id, void ha_rocksdb::change_table_ptr(TABLE *table_arg, TABLE_SHARE *share) { handler::change_table_ptr(table_arg, share); if (m_tbl_def) { - m_converter.reset(new Rdb_converter(ha_thd(), m_tbl_def, table)); + // Currently change_table_ptr is used for temp table, which doesn't support + // instant. + DBUG_ASSERT(table_arg->s->table_category == TABLE_CATEGORY_TEMPORARY || + table_arg->s->tmp_table_def != nullptr); + + const dd::Table *dd_table = nullptr; +#ifndef DBUG_OFF + dd::cache::Dictionary_client *dd_client = ha_thd()->dd_client(); + dd::cache::Dictionary_client::Auto_releaser releaser(dd_client); + if (!rocksdb_disable_instant_ddl && + dd_client->acquire(table_arg->s->db.str, table_arg->s->table_name.str, + &dd_table)) { + } + DBUG_ASSERT(dd_table == nullptr); +#endif + m_converter.reset( + new Rdb_converter(ha_thd(), m_tbl_def, table_arg, dd_table)); } } @@ -13828,13 +13854,34 @@ ha_rocksdb::Instant_Type ha_rocksdb::rocksdb_support_instant( return (Instant_Type::INSTANT_IMPOSSIBLE); } - if (m_tbl_def->m_is_mysql_system_table) { + /* no instant DDL support on system table and temp table */ + if (m_tbl_def->m_is_mysql_system_table || + old_table->s->tmp_table_def != nullptr || + old_table->s->table_category == TABLE_CATEGORY_TEMPORARY) { return (Instant_Type::INSTANT_IMPOSSIBLE); } /* If it's an ADD COLUMN without changing existing column orders */ if (alter_inplace_flags == Alter_inplace_info::ADD_STORED_BASE_COLUMN) { - return (Instant_Type::INSTANT_ADD_COLUMN); + /* + LIMITATION: Don't do instant add If new add columns will cause + null bits length change. + Reason: For MyRocks row(K/V), value slice itself don't specifiy how many + bytes are used for null bit flags. For non-instant table, We can use + table schema to figure out null bit flags length; but For instant table, + We couldn't use table schema. since suppose there is an inserted row + '{one byte null flag}'{col data}, later alter to add one instant column + with default null, then insert another row + '{two byte null flags}'{col data} For these two rows, MyRocks need extra + information to know whether null bit flags is 1 bytes or 2 bytes. + + TABLE->s->null_fields value is number of nullable field. MyRocks store + 1 bit per nullable field into {null flags} and round up to bytes. + */ + if (old_table->s->null_fields == altered_table->s->null_fields || + ceil((double)old_table->s->null_fields / 8) == + ceil((double)altered_table->s->null_fields / 8)) + return (Instant_Type::INSTANT_ADD_COLUMN); } // by default, impossible to do instant ddl @@ -14548,9 +14595,16 @@ bool ha_rocksdb::commit_inplace_alter_table( if (is_instant(ha_alter_info)) { /* update dd data */ - dd_commit_instant_table(table, altered_table, old_dd_tab, new_dd_tab); + Instant_Type type = + static_cast(ha_alter_info->handler_trivial_ctx); + if (type == Instant_Type::INSTANT_ADD_COLUMN) + dd_commit_instant_table(table, altered_table, old_dd_tab, new_dd_tab); + else + DBUG_ASSERT(0); // not supported yet + } else if (!rocksdb_disable_instant_ddl) { + dd_copy_private(*new_dd_tab, *old_dd_tab); + dd_copy_table_columns(*new_dd_tab, *old_dd_tab); } - uint table_default_cf_id = m_tbl_def->m_key_descr_arr[0]->get_gl_index_id().cf_id; if (ha_alter_info->handler_flags & @@ -14706,6 +14760,7 @@ bool ha_rocksdb::commit_inplace_alter_table( } } } + DBUG_RETURN(HA_EXIT_SUCCESS); } diff --git a/storage/rocksdb/ha_rocksdb.h b/storage/rocksdb/ha_rocksdb.h index 57551e9647fb..160ac9a21481 100644 --- a/storage/rocksdb/ha_rocksdb.h +++ b/storage/rocksdb/ha_rocksdb.h @@ -1212,4 +1212,5 @@ extern std::atomic rocksdb_partial_index_rows_sorted; extern std::atomic rocksdb_partial_index_rows_materialized; extern bool rocksdb_enable_tmp_table; extern bool rocksdb_enable_delete_range_for_drop_index; +extern bool rocksdb_disable_instant_ddl; } // namespace myrocks diff --git a/storage/rocksdb/nosql_access.cc b/storage/rocksdb/nosql_access.cc index f3e3cc481940..5921149ef930 100644 --- a/storage/rocksdb/nosql_access.cc +++ b/storage/rocksdb/nosql_access.cc @@ -40,6 +40,7 @@ #include "./sql/strfunc.h" #include "./sql/transaction.h" #include "mysql/services.h" +#include "sql/dd/cache/dictionary_client.h" // dd::cache::Dictionary_client #include "sql/sql_lex.h" /* MyRocks header files */ @@ -1486,7 +1487,7 @@ class select_exec { uint m_index; KEY *m_index_info; KEY *m_pk_info; - + const dd::Table *m_dd_table; // Current query is not supported bool m_unsupported; const char *m_error_msg; @@ -2057,7 +2058,17 @@ bool INLINE_ATTR select_exec::run() { m_key_def = m_tbl_def->m_key_descr_arr[m_index]; m_pk_def = m_tbl_def->m_key_descr_arr[m_table_share->primary_key]; - m_converter.reset(new Rdb_converter(m_thd, m_tbl_def, m_table)); + + // Query on table with instant cols require dd::Table + dd::cache::Dictionary_client *dd_client = m_thd->dd_client(); + dd::cache::Dictionary_client::Auto_releaser releaser(dd_client); + if (!rocksdb_disable_instant_ddl && + dd_client->acquire(m_table_share->db.str, m_table_share->table_name.str, + &m_dd_table)) { + m_handler->print_error(HA_ERR_ROCKSDB_INVALID_TABLE, 0); + return true; + } + m_converter.reset(new Rdb_converter(m_thd, m_tbl_def, m_table, m_dd_table)); // Scans WHERE and build the key and filter list if (scan_where()) { @@ -2215,8 +2226,8 @@ bool INLINE_ATTR select_exec::run_pk_point_query(txn_wrapper *txn) { bool INLINE_ATTR select_exec::setup_iterator(THD *thd) { if (m_key_def->is_partial_index()) { - m_iterator.reset( - new Rdb_iterator_partial(thd, m_key_def, m_pk_def, m_tbl_def, m_table)); + m_iterator.reset(new Rdb_iterator_partial(thd, m_key_def, m_pk_def, + m_tbl_def, m_table, m_dd_table)); } else { m_iterator.reset( new Rdb_iterator_base(thd, m_key_def, m_pk_def, m_tbl_def)); diff --git a/storage/rocksdb/rdb_converter.cc b/storage/rocksdb/rdb_converter.cc index 9975adf5db7d..4a3b50eb8c59 100644 --- a/storage/rocksdb/rdb_converter.cc +++ b/storage/rocksdb/rdb_converter.cc @@ -34,6 +34,7 @@ #include "./ha_rocksdb_proto.h" #include "./rdb_datadic.h" #include "./rdb_utils.h" +#include "./sql_dd.h" namespace myrocks { @@ -48,6 +49,54 @@ void dbug_modify_key_varchar8(String *on_disk_rec) { on_disk_rec->append(res.data(), res.size()); } +int Rdb_convert_to_record_value_decoder::decode_instant( + uchar *const buf, Rdb_field_encoder *field_dec) { + // m_instant_default_value store default value for instant cols + if (field_dec->m_instant_default_value) { // default value isn't null + // BLOB/JSON doesn't support default value + DBUG_ASSERT(field_dec->m_field_type != MYSQL_TYPE_BLOB || + field_dec->m_field_type != MYSQL_TYPE_JSON); + + if (field_dec->maybe_null()) { + // This sets the NULL-bit of this record + buf[field_dec->m_field_null_offset] &= ~(field_dec->m_field_null_mask); + } + + if (field_dec->m_field_type == MYSQL_TYPE_VARCHAR) { + if (field_dec->m_instant_default_value_len > field_dec->m_field_length) { + DBUG_ASSERT(false); + // The data on disk is longer than table DDL allows? + return HA_ERR_ROCKSDB_CORRUPT_DATA; + } + + // store length first + if (field_dec->m_field_length_bytes == 1) { + buf[field_dec->m_field_offset] = field_dec->m_instant_default_value_len; + } else { + DBUG_ASSERT(field_dec->m_field_length_bytes == 2); + int2store(buf + field_dec->m_field_offset, + field_dec->m_instant_default_value_len); + } + + // copy data + memcpy(buf + field_dec->m_field_offset + field_dec->m_field_length_bytes, + field_dec->m_instant_default_value, + field_dec->m_instant_default_value_len); + + } else { // fixed-length type + memcpy(buf + field_dec->m_field_offset, + field_dec->m_instant_default_value, + field_dec->m_instant_default_value_len); + } + } else { // default value is null + if (field_dec->maybe_null()) { + // This sets the NULL-bit of this record + buf[field_dec->m_field_null_offset] |= field_dec->m_field_null_mask; + } + } + + return HA_EXIT_SUCCESS; +} /* Convert field from rocksdb storage format into Mysql Record format @param buf OUT start memory to fill converted data @@ -236,19 +285,34 @@ int Rdb_value_field_iterator::next() { m_field_dec = m_field_iter->m_field_enc; bool decode = m_field_iter->m_decode; bool maybe_null = m_field_dec->maybe_null(); - // This is_null value is bind to how stroage format store its value - m_is_null = maybe_null && ((m_null_bytes[m_field_dec->m_null_offset] & - m_field_dec->m_null_mask) != 0); - // Skip the bytes we need to skip + // For non-instant cols, Skip the bytes we need to skip int skip = m_field_iter->m_skip; - if (skip && !m_value_slice_reader->read(skip)) { + if (skip && !m_field_dec->m_is_instant_field && + !m_value_slice_reader->read(skip)) { + DBUG_ASSERT(false); return HA_ERR_ROCKSDB_CORRUPT_DATA; + } else if (skip && m_field_dec->m_is_instant_field) { + // For instant cols, skip the bytes if record contains that cols data + m_value_slice_reader->read( + std::min(skip, m_value_slice_reader->remaining_bytes())); + } + + // If a row is inserted after instant ddl, value_slice will contain instant + // column data + if (!m_field_dec->m_is_instant_field || + m_value_slice_reader->remaining_bytes() > 0) { + // This is_null value is bind to how stroage format store its value + m_is_null = maybe_null && ((m_null_bytes[m_field_dec->m_null_offset] & + m_field_dec->m_null_mask) != 0); + + // Decode each field + err = value_field_decoder::decode( + m_buf, m_table, m_field_dec, m_value_slice_reader, decode, m_is_null); + } else if (m_field_dec->m_is_instant_field && decode) { + err = value_field_decoder::decode_instant(m_buf, m_field_dec); } - // Decode each field - err = value_field_decoder::decode(m_buf, m_table, m_field_dec, - m_value_slice_reader, decode, m_is_null); if (err != HA_EXIT_SUCCESS) { return err; } @@ -296,7 +360,7 @@ bool Rdb_value_field_iterator::is_null() const { @param table IN Current open table */ Rdb_converter::Rdb_converter(const THD *thd, const Rdb_tbl_def *tbl_def, - TABLE *table) + TABLE *table, const dd::Table *dd_table) : m_thd(thd), m_tbl_def(tbl_def), m_table(table) { DBUG_ASSERT(thd != nullptr); DBUG_ASSERT(tbl_def != nullptr); @@ -306,10 +370,13 @@ Rdb_converter::Rdb_converter(const THD *thd, const Rdb_tbl_def *tbl_def, m_maybe_unpack_info = false; m_row_checksums_checked = 0; m_null_bytes = nullptr; - setup_field_encoders(); + setup_field_encoders(dd_table); } Rdb_converter::~Rdb_converter() { + for (uint i = 0; i < m_table->s->fields; i++) { + my_free(m_encoder_arr[i].m_instant_default_value); + } my_free(m_encoder_arr); m_encoder_arr = nullptr; // These are needed to suppress valgrind errors in rocksdb.partition @@ -406,7 +473,7 @@ void Rdb_converter::setup_field_decoders(const MY_BITMAP *field_map, } } -void Rdb_converter::setup_field_encoders() { +void Rdb_converter::setup_field_encoders(const dd::Table *dd_table) { uint null_bytes_length = 0; uchar cur_null_mask = 0x1; @@ -417,6 +484,19 @@ void Rdb_converter::setup_field_encoders() { return; } + // whether table contains instant cols + bool is_instant_table = false; + // num of cols before first instant cols append + uint instant_cols = 0; + if (!rocksdb_disable_instant_ddl && dd_table != nullptr) { + // check whether table contain instant col + is_instant_table = dd_table_has_instant_cols(*dd_table); + if (is_instant_table) { + dd_table->se_private_data().get( + dd_table_key_strings[DD_TABLE_INSTANT_COLS], &instant_cols); + } + } + for (uint i = 0; i < m_table->s->fields; i++) { Field *const field = m_table->field[i]; m_encoder_arr[i].m_storage_type = Rdb_field_encoder::STORE_ALL; @@ -469,6 +549,18 @@ void Rdb_converter::setup_field_encoders() { m_encoder_arr[i].m_field_length_bytes = -1; } + m_encoder_arr[i].m_is_instant_field = false; + m_encoder_arr[i].m_instant_default_value = nullptr; + // currently instant ddl only support append column + if (is_instant_table && i >= instant_cols) { + m_encoder_arr[i].m_is_instant_field = true; + dd::Column *column = + const_cast(dd_find_column(dd_table, field->field_name)); + dd_table_get_instant_default( + *column, &m_encoder_arr[i].m_instant_default_value, + &m_encoder_arr[i].m_instant_default_value_len); + } + auto maybe_null = field->is_nullable(); if (maybe_null) { m_encoder_arr[i].m_null_mask = cur_null_mask; @@ -493,6 +585,14 @@ void Rdb_converter::setup_field_encoders() { } m_null_bytes_length_in_record = null_bytes_length; + // Current myrocks store 1 bit per nullable field in null flags + // if later myrocks changes to use different length null bytes, please also + // update ha_rocksdb::rocksdb_support_instant() + // For temporary table, its null_fields value maybe different than normal + // table. see create_tmp_table() + DBUG_ASSERT(m_table->s->table_category == TABLE_CATEGORY_TEMPORARY || + ceil((double)m_table->s->null_fields / 8) == + (uint)m_null_bytes_length_in_record); } /* diff --git a/storage/rocksdb/rdb_converter.h b/storage/rocksdb/rdb_converter.h index 1e75c3ad12e7..962bb6136052 100644 --- a/storage/rocksdb/rdb_converter.h +++ b/storage/rocksdb/rdb_converter.h @@ -60,6 +60,7 @@ class Rdb_convert_to_record_value_decoder { static int decode(uchar *const buf, TABLE *table, Rdb_field_encoder *field_dec, Rdb_string_reader *reader, bool decode, bool is_null); + static int decode_instant(uchar *const buf, Rdb_field_encoder *field_dec); private: static int decode_blob(TABLE *table, uchar *const buf, @@ -129,7 +130,8 @@ class Rdb_converter { /* Initialize converter with table data */ - Rdb_converter(const THD *thd, const Rdb_tbl_def *tbl_def, TABLE *table); + Rdb_converter(const THD *thd, const Rdb_tbl_def *tbl_def, TABLE *table, + const dd::Table *dd_table); Rdb_converter(const Rdb_converter &decoder) = delete; Rdb_converter &operator=(const Rdb_converter &decoder) = delete; ~Rdb_converter(); @@ -179,7 +181,7 @@ class Rdb_converter { const std::shared_ptr &pk_def, rocksdb::Slice *unpack_slice); - void setup_field_encoders(); + void setup_field_encoders(const dd::Table *dd_table); void get_storage_type(Rdb_field_encoder *const encoder, const uint kp); diff --git a/storage/rocksdb/rdb_datadic.h b/storage/rocksdb/rdb_datadic.h index bb426e2822fe..76786521e8b0 100644 --- a/storage/rocksdb/rdb_datadic.h +++ b/storage/rocksdb/rdb_datadic.h @@ -1138,7 +1138,10 @@ class Rdb_field_encoder { uint m_field_length; ptrdiff_t m_field_null_offset; ptrdiff_t m_field_offset; - + bool m_is_instant_field; + // nullptr means null value for that field + uchar *m_instant_default_value; + size_t m_instant_default_value_len; bool maybe_null() const { return m_null_mask != 0; } bool uses_variable_len_encoding() const { diff --git a/storage/rocksdb/rdb_iterator.cc b/storage/rocksdb/rdb_iterator.cc index 11e538370fde..94c799b32f91 100644 --- a/storage/rocksdb/rdb_iterator.cc +++ b/storage/rocksdb/rdb_iterator.cc @@ -365,11 +365,11 @@ int Rdb_iterator_base::get(const rocksdb::Slice *key, Rdb_iterator_partial::Rdb_iterator_partial( THD *thd, const std::shared_ptr kd, const std::shared_ptr pkd, const Rdb_tbl_def *tbl_def, - TABLE *table) + TABLE *table, const dd::Table *dd_table) : Rdb_iterator_base(thd, kd, pkd, tbl_def), m_table(table), m_iterator_pk(thd, pkd, pkd, tbl_def), - m_converter(thd, tbl_def, table), + m_converter(thd, tbl_def, table, dd_table), m_valid(false), m_materialized(false), m_iterator_pk_position(Iterator_position::UNKNOWN), diff --git a/storage/rocksdb/rdb_iterator.h b/storage/rocksdb/rdb_iterator.h index 7fd1ff470c7a..18abdc56c67b 100644 --- a/storage/rocksdb/rdb_iterator.h +++ b/storage/rocksdb/rdb_iterator.h @@ -206,7 +206,8 @@ class Rdb_iterator_partial : public Rdb_iterator_base { public: Rdb_iterator_partial(THD *thd, const std::shared_ptr kd, const std::shared_ptr pkd, - const Rdb_tbl_def *tbl_def, TABLE *table); + const Rdb_tbl_def *tbl_def, TABLE *table, + const dd::Table *dd_table); ~Rdb_iterator_partial() override; int seek(enum ha_rkey_function find_flag, const rocksdb::Slice start_key, diff --git a/storage/rocksdb/sql_dd.cc b/storage/rocksdb/sql_dd.cc index faa4dc095bad..56aa3aad2f69 100644 --- a/storage/rocksdb/sql_dd.cc +++ b/storage/rocksdb/sql_dd.cc @@ -16,6 +16,7 @@ #include "sql_dd.h" #include +#include #include "./rdb_utils.h" #include "my_sys.h" #include "mysql/psi/psi_memory.h" @@ -23,9 +24,6 @@ namespace myrocks { -/* Note that inside MySQL 'byte' is defined as char on Linux! */ -#define byte unsigned char - #ifdef UNIV_DEBUG bool dd_instant_columns_exist(const dd::Table &dd_table) { uint32_t n_cols = 0; @@ -106,11 +104,11 @@ void dd_add_instant_columns(const TABLE *old_table, const TABLE *altered_table, #endif uint32_t size = field->data_length(); size_t length = 0; - const char *value = coder.encode( - reinterpret_cast(field->data_ptr()), size, &length); + std::unique_ptr value = coder.encode( + reinterpret_cast(field->data_ptr()), size, &length); dd::String_type default_value; - default_value.assign(dd::String_type(value, length)); + default_value.assign(dd::String_type(value.get(), length)); se_private.set(dd_column_key_strings[DD_INSTANT_COLUMN_DEFAULT], default_value); } @@ -133,17 +131,21 @@ const dd::Column *dd_find_column(const dd::Table *dd_table, const char *name) { return (nullptr); } -void db_table_get_instant_default(const dd::Column &column, - const uchar **default_value, size_t *len) { - dd::String_type value; - const dd::Properties &se_private = column.se_private_data(); - se_private.get(dd_column_key_strings[DD_INSTANT_COLUMN_DEFAULT], &value); - DD_instant_col_val_coder coder; - auto val = coder.decode(value.c_str(), value.length(), len); - auto dst = - reinterpret_cast(my_malloc(PSI_NOT_INSTRUMENTED, *len, MYF(0))); - memcpy(dst, val, *len); - *default_value = dst; +void dd_table_get_instant_default(const dd::Column &column, + uchar **default_value, size_t *len) { + const dd::Properties &se_private_data = column.se_private_data(); + if (se_private_data.exists( + dd_column_key_strings[DD_INSTANT_COLUMN_DEFAULT_NULL])) { + *default_value = nullptr; + *len = 0; + } else if (se_private_data.exists( + dd_column_key_strings[DD_INSTANT_COLUMN_DEFAULT])) { + dd::String_type value; + se_private_data.get(dd_column_key_strings[DD_INSTANT_COLUMN_DEFAULT], + &value); + DD_instant_col_val_coder coder; + *default_value = coder.decode(value.c_str(), value.length(), len); + } } /** Copy the engine-private parts of column definitions of a table. @param[in,out] new_table Copy of old table @@ -169,21 +171,33 @@ void dd_copy_table_columns(dd::Table &new_table, const dd::Table &old_table) { } } +/** Copy the engine-private parts of a table or partition definition +when the change does not affect RocksDB. This mainly copies the common +private data between dd::Table +@tparam Table dd::Table +@param[in,out] new_table Copy of old table or partition definition +@param[in] old_table Old table or partition definition */ +void dd_copy_private(dd::Table &new_table, const dd::Table &old_table) { + new_table.se_private_data().clear(); + new_table.set_se_private_id(old_table.se_private_id()); + new_table.set_se_private_data(old_table.se_private_data()); + new_table.table().set_row_format(old_table.table().row_format()); + new_table.options().clear(); + new_table.set_options(old_table.options()); +} + /** The encode() will change the byte stream into char stream, by spliting every byte into two chars, for example, 0xFF, would be split into 0x0F and 0x0F. So the final storage space would be double. @param[in] stream stream to encode in bytes @param[in] in_len length of the stream @param[out] out_len length of the encoded stream -@return the encoded stream, which would be destroyed if the class +@return the encoded stream, which would be destroyed if the unique_ptr itself is destroyed */ -const char *DD_instant_col_val_coder::encode(const byte *stream, size_t in_len, - size_t *out_len) { - cleanup(); - - m_result = reinterpret_cast( - my_malloc(PSI_NOT_INSTRUMENTED, in_len * 2, MYF(0))); - char *result = reinterpret_cast(m_result); +std::unique_ptr DD_instant_col_val_coder::encode(const uchar *stream, + size_t in_len, + size_t *out_len) { + char *result = new char[in_len * 2]; for (size_t i = 0; i < in_len; ++i) { uint8_t v1 = ((stream[i] & 0xF0) >> 4); @@ -195,7 +209,7 @@ const char *DD_instant_col_val_coder::encode(const byte *stream, size_t in_len, *out_len = in_len * 2; - return (result); + return std::unique_ptr(result); } /** The decode() will change the char stream into byte stream, by merging @@ -204,15 +218,12 @@ every two chars into one byte, for example, 0x0F and 0x0F, would be merged into @param[in] stream stream to decode in chars @param[in] in_len length of the stream @param[out] out_len length of the decoded stream -@return the decoded stream, which would be destroyed if the class -itself is destroyed */ -const byte *DD_instant_col_val_coder::decode(const char *stream, size_t in_len, - size_t *out_len) { +@return the decoded stream, which would be destroyed by caller */ +uchar *DD_instant_col_val_coder::decode(const char *stream, size_t in_len, + size_t *out_len) { DBUG_ASSERT(in_len % 2 == 0); - cleanup(); - - m_result = reinterpret_cast( + uchar *result = reinterpret_cast( my_malloc(PSI_NOT_INSTRUMENTED, in_len / 2, MYF(0))); for (size_t i = 0; i < in_len / 2; ++i) { @@ -222,12 +233,12 @@ const byte *DD_instant_col_val_coder::decode(const char *stream, size_t in_len, DBUG_ASSERT(isdigit(c1) || (c1 >= 'a' && c1 <= 'f')); DBUG_ASSERT(isdigit(c2) || (c2 >= 'a' && c2 <= 'f')); - m_result[i] = ((isdigit(c1) ? c1 - '0' : c1 - 'a' + 10) << 4) + - ((isdigit(c2) ? c2 - '0' : c2 - 'a' + 10)); + result[i] = ((isdigit(c1) ? c1 - '0' : c1 - 'a' + 10) << 4) + + ((isdigit(c2) ? c2 - '0' : c2 - 'a' + 10)); } *out_len = in_len / 2; - return (m_result); + return result; } } // namespace myrocks diff --git a/storage/rocksdb/sql_dd.h b/storage/rocksdb/sql_dd.h index 1dd7eaa0edfe..1b95c121ebe4 100644 --- a/storage/rocksdb/sql_dd.h +++ b/storage/rocksdb/sql_dd.h @@ -79,6 +79,14 @@ bool dd_instant_columns_exist(const dd::Table &dd_table); @param[in] old_table Old table */ void dd_copy_table_columns(dd::Table &new_table, const dd::Table &old_table); +/** Copy the engine-private parts of a table or partition definition +when the change does not affect InnoDB. This mainly copies the common +private data between dd::Table and dd::Partition +@tparam Table dd::Table or dd::Partition +@param[in,out] new_table Copy of old table or partition definition +@param[in] old_table Old table or partition definition */ +void dd_copy_private(dd::Table &new_table, const dd::Table &old_table); + /** Determine if a dd::Table has any instant column @param[in] table dd::Table @return true If it's a table with instant columns @@ -94,8 +102,8 @@ inline bool dd_table_has_instant_cols(const dd::Table &table) { return (instant); } -void db_table_get_instant_default(const dd::Column &column, - const uchar **default_value, size_t *len); +void dd_table_get_instant_default(const dd::Column &column, + uchar **default_value, size_t *len); void dd_add_instant_columns(const TABLE *old_table, const TABLE *altered_table, dd::Table *new_dd_table MY_ATTRIBUTE((unused))); @@ -110,37 +118,20 @@ into 0x0F and 0x0F. So the final storage space would be double. For the decode, it's the converse process, combining two chars into one byte. */ class DD_instant_col_val_coder { public: - /** Constructor */ - DD_instant_col_val_coder() : m_result(nullptr) {} - - /** Destructor */ - ~DD_instant_col_val_coder() { cleanup(); } - /** Encode the specified stream in format of bytes into chars @param[in] stream stream to encode in bytes @param[in] in_len length of the stream @param[out] out_len length of the encoded stream - @return the encoded stream, which would be destroyed if the class - itself is destroyed */ - const char *encode(const unsigned char *stream, size_t in_len, - size_t *out_len); + @return the encoded stream, which would be destroyed */ + std::unique_ptr encode(const unsigned char *stream, size_t in_len, + size_t *out_len); /** Decode the specified stream, which is encoded by encode() @param[in] stream stream to decode in chars @param[in] in_len length of the stream @param[out] out_len length of the decoded stream - @return the decoded stream, which would be destroyed if the class - itself is destroyed */ - const unsigned char *decode(const char *stream, size_t in_len, - size_t *out_len); - - private: - /** Clean-up last result */ - void cleanup() { my_free(m_result); } - - private: - /** The encoded or decoded stream */ - unsigned char *m_result; + @return the decoded stream, which would be destroyed by caller */ + uchar *decode(const char *stream, size_t in_len, size_t *out_len); }; /** Update metadata in commit phase for instant ADD COLUMN. Basically, it From 5c07d01b967242eb6d6299164c17ee12d1744c70 Mon Sep 17 00:00:00 2001 From: Anirban Rahut Date: Thu, 2 Jun 2022 14:02:19 -0700 Subject: [PATCH 07/17] Marking the shardbeater as stopped after sb_thd has been destroyed and removed Summary: We hit a low frequency race condition in testing, where running "stop shardbeater; start shardbeater" can cause the server to crash. This was happening because we set the state of the SHARDBEATER to STOPPED a bit too early. This unblocked the stop shardbeater SQL command and allowed it to pick up the start shardbeater SQL next, while the generate_shardbeats thread was still running and would next destroy sb_thd and remove it from global threads. This led to the start shardbeats SQL to start a THD which was immediately deleted causing the crash. Reviewed By: abhinav04sharma Differential Revision: D36879642 fbshipit-source-id: c9da99d4f5a2b5f767cdd1b3c27e84925669f02f --- sql/rpl_shardbeats.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/rpl_shardbeats.cc b/sql/rpl_shardbeats.cc index ff7d137f0301..805f1fc3c72b 100644 --- a/sql/rpl_shardbeats.cc +++ b/sql/rpl_shardbeats.cc @@ -655,8 +655,6 @@ void Shardbeats_manager::cleanup_thread() { // NO_LINT_DEBUG sql_print_information("Exiting loop of generate_shardbeats"); - transition_to_state(State::STOPPED); - // Cleanup and exit sb_thd->release_resources(); @@ -664,6 +662,8 @@ void Shardbeats_manager::cleanup_thread() { thd_manager->remove_thd(sb_thd); delete sb_thd; sb_thd = nullptr; + + transition_to_state(State::STOPPED); } Shardbeats_manager::Shard_stats::Shard_stats() From 42fce2f3e5bd26d35b342278a7f7b0dcb04f1705 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Mon, 30 May 2022 12:30:06 -0700 Subject: [PATCH 08/17] Fix bypass thd->lock leak Summary: In MySQL bypass, if we decide to fallback *after* lock_table (typically when we see complex conditions such as multiple AND field > N AND field > M, etc), the table will be locked again which and it'll leak lock and actually triggers assert in debug build. MySQL relies on per-handler THR_LOCK_DATA (you can think it as the lock request) and often per table share THR_LOCK (the actual lock that tracks the read/read_wait/write/write_wait lists) to track more granular table level locks in addition to metadata lock. If the lock gets leaked, what will happen is THR_LOCK_DATA on the table/handler (such as ha_rocksdb::m_db_lock) will be left on in the THR_LOCK (such as Rdb_table_handler::m_thr_lock), and this can cause many different issues: * the THR_LOCK_DATA::next will point to itself if the same table is locked again on read lock * the THR_LOCK_DATA::next will be updated to the write lock if the table is locked for write, essentially linking the read list and write list together, leading to further corruptions * when the table and its THR_LOCK_DATA gets released, the THR_LOCK_DATA instance will obviously become dangling pointer In practice this often leads to deadlock in replication thread and instance gets flagged by automation due to lagging behind too much. Interestingly 5.6 doesn't have this issue because it has a check `if (is_query_tables_locked)` before the lock, so we are doing the same in 8.0 as well. We should also see if the THR_LOCK are actually needed in MyRocks as InnoDB doesn't use it anymore since 5.7. See https://dev.mysql.com/worklog/task/?id=6671 Reviewed By: luqun Differential Revision: D36765784 fbshipit-source-id: d6930d80f80425c6e8ff04e6bb934191d60c7595 --- .../r/bypass_select_unsupported.result | 672 ++++++++++++++++-- .../rocksdb/t/bypass_select_unsupported.inc | 467 ++++++++++++ .../rocksdb/t/bypass_select_unsupported.test | 357 +--------- sql/sql_base.cc | 8 + sql/sql_select.cc | 6 +- 5 files changed, 1104 insertions(+), 406 deletions(-) create mode 100644 mysql-test/suite/rocksdb/t/bypass_select_unsupported.inc diff --git a/mysql-test/suite/rocksdb/r/bypass_select_unsupported.result b/mysql-test/suite/rocksdb/r/bypass_select_unsupported.result index 655e9311f069..6f30c528b345 100644 --- a/mysql-test/suite/rocksdb/r/bypass_select_unsupported.result +++ b/mysql-test/suite/rocksdb/r/bypass_select_unsupported.result @@ -13,24 +13,25 @@ SELECT @@rocksdb_select_bypass_allow_filters; SELECT @@rocksdb_select_bypass_allow_filters into @save_rocksdb_select_bypass_allow_filters; set global rocksdb_select_bypass_allow_filters=0; -create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, -c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; -create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, -c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; -create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, -c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; -create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; +@@rocksdb_select_bypass_rejected_query_history_size +0 SELECT @@rocksdb_select_bypass_fail_unsupported; @@rocksdb_select_bypass_fail_unsupported 1 SELECT @@rocksdb_select_bypass_fail_unsupported into @save_fail_unsupported; +Test bypass failing with unsupported scenario set global rocksdb_select_bypass_fail_unsupported=true; SELECT @@rocksdb_select_bypass_fail_unsupported; @@rocksdb_select_bypass_fail_unsupported 1 -SELECT @@rocksdb_select_bypass_rejected_query_history_size; -@@rocksdb_select_bypass_rejected_query_history_size -0 +create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; +create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; SELECT /*+ bypass */ pk from t1 WHERE pk=1 having pk=1; ERROR 42000: SELECT statement pattern not supported: HAVING not supported SHOW STATUS LIKE 'rocksdb_select_bypass%'; @@ -291,30 +292,56 @@ QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` > ? Unsupported range query pattern SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` >= ? Unsupported range query pattern SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` >= ? Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; +ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; +ERROR 42000: SELECT statement pattern not supported: Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); +ERROR 42000: SELECT statement pattern not supported: Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; +ERROR 42000: SELECT statement pattern not supported: Non-optimal queries with filters are not allowed SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 4 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 21 +rocksdb_select_bypass_rejected 34 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` <= ? Unsupported range query pattern -SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` > ? Unsupported range query pattern -SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` >= ? Unsupported range query pattern +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; ERROR 42000: SELECT statement pattern not supported: Unsupported range query pattern SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 4 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 22 +rocksdb_select_bypass_rejected 35 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` <= ? AND `pk` < ? Unsupported range query pattern SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` <= ? Unsupported range query pattern -SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` > ? Unsupported range query pattern +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; ERROR 42000: SELECT statement pattern not supported: Non-optimal queries with filters are not allowed SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); @@ -325,7 +352,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 4 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 25 +rocksdb_select_bypass_rejected 38 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed @@ -337,7 +364,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 4 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 26 +rocksdb_select_bypass_rejected 39 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN @@ -349,7 +376,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 4 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 27 +rocksdb_select_bypass_rejected 40 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` = (...) Unsupported WHERE - operand should be int/string/real/varbinary @@ -365,7 +392,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 5 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 27 +rocksdb_select_bypass_rejected 40 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` = (...) Unsupported WHERE - operand should be int/string/real/varbinary @@ -377,7 +404,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 6 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 27 +rocksdb_select_bypass_rejected 40 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` = (...) Unsupported WHERE - operand should be int/string/real/varbinary @@ -389,7 +416,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 27 +rocksdb_select_bypass_rejected 40 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` = (...) Unsupported WHERE - operand should be int/string/real/varbinary @@ -401,7 +428,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 28 +rocksdb_select_bypass_rejected 41 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` = SOME ( SELECT `pk` FROM `t1` ) Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN @@ -414,7 +441,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 29 +rocksdb_select_bypass_rejected 42 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `pk` FROM `t1` WHERE `pk` > ALL ( SELECT `pk` FROM `t1` ) Unsupported WHERE - needs to be >, >=, <, <=, =, IN @@ -427,7 +454,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 30 +rocksdb_select_bypass_rejected 43 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT DISTINCTROW `a` FROM `t1` SELECT options not supported (such as SELECT DISTINCT) @@ -440,7 +467,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 31 +rocksdb_select_bypass_rejected 44 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN @@ -460,7 +487,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 31 +rocksdb_select_bypass_rejected 44 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN @@ -471,7 +498,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 31 +rocksdb_select_bypass_rejected 44 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN @@ -481,7 +508,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 31 +rocksdb_select_bypass_rejected 44 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN @@ -495,7 +522,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 31 +rocksdb_select_bypass_rejected 44 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN @@ -521,7 +548,7 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 39 +rocksdb_select_bypass_rejected 52 SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `a` , `b` , `c` FROM `t3` FORCE INDEX ( `a` ) WHERE `a` = ? ORDER BY `b` , `b` only binary, utf8_bin, latin1_bin is supported for varchar field @@ -533,14 +560,14 @@ SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 41 +rocksdb_select_bypass_rejected 54 SELECT /*+ bypass */ a from t1 WHERE a=1 INTO DUMPFILE 'datadir/select.dump'; ERROR 42000: SELECT statement pattern not supported: SELECT INTO/DUMP not supported SHOW STATUS LIKE 'rocksdb_select_bypass%'; Variable_name Value rocksdb_select_bypass_executed 7 rocksdb_select_bypass_failed 0 -rocksdb_select_bypass_rejected 42 +rocksdb_select_bypass_rejected 55 SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE; ERROR 42000: SELECT statement pattern not supported: Only SELECT with default READ lock is supported SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE SKIP LOCKED; @@ -567,50 +594,569 @@ ERROR 42000: SELECT statement pattern not supported: NULL fields not supported SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; QUERY ERROR_MSG SELECT `a` FROM `t4` WHERE `a` = ? NULL fields not supported -SELECT @@rocksdb_select_bypass_policy; -@@rocksdb_select_bypass_policy -opt_in -set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; -SELECT @@rocksdb_select_bypass_policy; -@@rocksdb_select_bypass_policy -always_off -set global rocksdb_select_bypass_allow_filters= -@save_rocksdb_select_bypass_allow_filters; -SELECT @@rocksdb_select_bypass_fail_unsupported; -@@rocksdb_select_bypass_fail_unsupported -1 +drop table t1; +drop table t2; +drop table t3; +drop table t4; +Test bypass fallback with unsupported scenario set global rocksdb_select_bypass_fail_unsupported=false; SELECT @@rocksdb_select_bypass_fail_unsupported; @@rocksdb_select_bypass_fail_unsupported 0 -SELECT /*+ bypass */ * from t1; -pk a b c d -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; +create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; +create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; +SELECT /*+ bypass */ pk from t1 WHERE pk=1 having pk=1; pk -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 63 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` = ? HAVING `pk` = ? HAVING not supported +set global rocksdb_select_bypass_rejected_query_history_size=3; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; +@@rocksdb_select_bypass_rejected_query_history_size +3 +SELECT /*+ bypass */ pk from t1 WHERE pk=1 group by pk; pk -SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 64 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` = ? GROUP BY `pk` GROUP BY not supported +SELECT `pk` FROM `t1` WHERE `pk` = ? HAVING `pk` = ? HAVING not supported +SELECT /*+ bypass */ * from t1 WHERE pk=1; +pk a b c d +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 65 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT * FROM `t1` WHERE `pk` = ? Unrecognized field name: '*' +SELECT `pk` FROM `t1` WHERE `pk` = ? GROUP BY `pk` GROUP BY not supported +SELECT `pk` FROM `t1` WHERE `pk` = ? HAVING `pk` = ? HAVING not supported +SELECT /*+ bypass */ 1 from t1 WHERE pk=1; +1 +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 66 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT * FROM `t1` WHERE `pk` = ? Unrecognized field name: '*' +SELECT `pk` FROM `t1` WHERE `pk` = ? GROUP BY `pk` GROUP BY not supported +SELECT /*+ bypass */ 1+2 from t1 WHERE pk=1; +1+2 +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 67 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ? + ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT * FROM `t1` WHERE `pk` = ? Unrecognized field name: '*' +SELECT /*+ bypass */ COUNT(*) from t1 WHERE pk=1; +COUNT(*) +0 +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 68 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT COUNT ( * ) FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT ? + ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT /*+ bypass */ COUNT(pk) from t1 WHERE pk=1; +COUNT(pk) +0 +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 69 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT COUNT ( `pk` ) FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT COUNT ( * ) FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT ? + ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT /*+ bypass */ pk+1 from t1 WHERE pk=1; +pk+1 +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 70 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` + ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT COUNT ( `pk` ) FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT COUNT ( * ) FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT /*+ bypass */ pk from t1 USE INDEX (PRIMARY) WHERE pk=1; pk -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 71 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` USE INDEX ( PRIMARY ) WHERE `pk` = ? Index hint must be FORCE INDEX +SELECT `pk` + ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT COUNT ( `pk` ) FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT /*+ bypass */ pk from t1; pk -SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 72 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` USE INDEX ( PRIMARY ) WHERE `pk` = ? Index hint must be FORCE INDEX +SELECT `pk` + ? FROM `t1` WHERE `pk` = ? SELECT expressions can only be field +SELECT /*+ bypass */ pk from t1 WHERE pk=1 or pk=2; pk -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 73 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` = ? OR `pk` = ? Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` USE INDEX ( PRIMARY ) WHERE `pk` = ? Index hint must be FORCE INDEX +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; pk -SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 7 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 74 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` > ? AND `pk` > ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` = ? OR `pk` = ? Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND a = 1; pk -SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 8 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 74 +SELECT /*+ bypass */ pk from t1 WHERE pk = 1 AND a = 1; pk -SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 9 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 74 +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b = 2 AND c = 3 AND d > 4; +d +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 10 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 74 +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b = 2 AND c > 3 AND d > 4; +d +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 74 +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b = 2 AND d > 4; +d +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 75 +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b > 2 AND d > 4; +d +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 76 +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; pk -SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 77 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` > ? Unsupported range query pattern +SELECT `d` FROM `t1` FORCE INDEX ( `a` ) WHERE `a` = ? AND `b` > ? AND `d` > ? Non-optimal queries with filters are not allowed +SELECT `d` FROM `t1` FORCE INDEX ( `a` ) WHERE `a` = ? AND `b` = ? AND `d` > ? Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; pk -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 78 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` < ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` > ? Unsupported range query pattern +SELECT `d` FROM `t1` FORCE INDEX ( `a` ) WHERE `a` = ? AND `b` > ? AND `d` > ? Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 79 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` <= ? AND `pk` <= ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` < ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` > ? Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 80 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` >= ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` <= ? AND `pk` <= ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` < ? Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 81 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` >= ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` >= ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` <= ? AND `pk` <= ? Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 82 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` > ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` > ? AND `pk` >= ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` >= ? AND `pk` >= ? Unsupported range query pattern +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; +pk +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; +pk +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; +a b c +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); +a b c +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; +a b c +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 96 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` <= ? Unsupported range query pattern +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 97 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` <= ? AND `pk` < ? Unsupported range query pattern +SELECT `pk` FROM `t1` WHERE `pk` < ? AND `pk` <= ? Unsupported range query pattern +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; a b c SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); a b c SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; a b c +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 100 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk<=>1; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 11 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 101 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk=DATE '2019-03-25'; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 12 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 101 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk=TIME '18:01:00'; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 13 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 101 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk=TIMESTAMP '2019-03-25 18:01:00'; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 101 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` IN (...) Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk=ANY (SELECT pk FROM t1); +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 102 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` = SOME ( SELECT `pk` FROM `t1` ) Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `a` , `b` , `c` FROM `t1` WHERE `a` > ? AND `b` > ? AND `c` > ? Non-optimal queries with filters are not allowed +SELECT /*+ bypass */ pk from t1 WHERE pk>ALL (SELECT pk FROM t1); +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 103 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `pk` FROM `t1` WHERE `pk` > ALL ( SELECT `pk` FROM `t1` ) Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` WHERE `pk` = SOME ( SELECT `pk` FROM `t1` ) Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` WHERE `pk` <=> ? Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT /*+ bypass */ DISTINCT a from t1; +a +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 104 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT DISTINCTROW `a` FROM `t1` SELECT options not supported (such as SELECT DISTINCT) +SELECT `pk` FROM `t1` WHERE `pk` > ALL ( SELECT `pk` FROM `t1` ) Unsupported WHERE - needs to be >, >=, <, <=, =, IN +SELECT `pk` FROM `t1` WHERE `pk` = SOME ( SELECT `pk` FROM `t1` ) Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ ALL a, b from t1; +a b +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 105 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT DISTINCTROW `a` FROM `t1` SELECT options not supported (such as SELECT DISTINCT) +SELECT `pk` FROM `t1` WHERE `pk` > ALL ( SELECT `pk` FROM `t1` ) Unsupported WHERE - needs to be >, >=, <, <=, =, IN +set global rocksdb_select_bypass_rejected_query_history_size=1; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; +@@rocksdb_select_bypass_rejected_query_history_size +1 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ t1.pk, t2.pk from t1, t2; +pk pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 105 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ t1.pk FROM t1 LEFT JOIN t2 using (pk) +WHERE t1.pk=1; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 105 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ pk, a from (SELECT pk, a FROM t1) AS t1_temp; +pk a +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 105 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ pk FROM t1 WHERE pk=3 UNION DISTINCT +SELECT pk FROM t2 WHERE pk=3; +pk +SELECT /*+ bypass */ pk FROM t1 WHERE pk=3 UNION ALL +SELECT pk FROM t2 WHERE pk=3; +pk +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 105 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT ALL `a` , `b` FROM `t1` Unsupported WHERE: should be expr [(AND expr)*] where expr only contains >, >=, <, <=, =, IN +SELECT /*+ bypass */ a, b, c FROM t1 WHERE a=1 ORDER BY a; +a b c +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, a; +a b c +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 +ORDER BY a, b, c, c, c, a, b, c, d; +a b c +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY c, a; +a b c +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY a, a; +a b c +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 +ORDER BY a, a, a, a, a, a, a, a; +a b c +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, b; +a b c +SELECT /*+ bypass */ a, b, c FROM t3 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, b; +a b c +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 113 +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `a` , `b` , `c` FROM `t3` FORCE INDEX ( `a` ) WHERE `a` = ? ORDER BY `b` , `b` only binary, utf8_bin, latin1_bin is supported for varchar field +SELECT /*+ bypass */ a from t1 WHERE a=1 INTO OUTFILE 'datadir/select.out'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 114 +SELECT /*+ bypass */ a from t1 WHERE a=1 INTO DUMPFILE 'datadir/select.dump'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +Variable_name Value +rocksdb_select_bypass_executed 14 +rocksdb_select_bypass_failed 0 +rocksdb_select_bypass_rejected 115 +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE; +a b c +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE SKIP LOCKED; +a b c +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE NOWAIT; +a b c +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 LOCK IN SHARE MODE; +a b c +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `a` , `b` , `c` FROM `t3` WHERE `pk` = ? LOCK IN SHARE MODE Only SELECT with default READ lock is supported +SELECT /*+ bypass */ HIGH_PRIORITY a, b, c FROM t3 WHERE pk=1; +a b c +SELECT /*+ bypass */ a FROM t3 WHERE a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND +a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND +a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND +a=1 AND a=1; +a +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `a` FROM `t3` WHERE `a` = ? AND `a` = ? AND `a` = ? AND `a` = ? AND `a` = ? AND `a` = ? AND ` Too many WHERE expressions +SELECT /*+ bypass */ a FROM t4 WHERE a=1; +a +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +QUERY ERROR_MSG +SELECT `a` FROM `t4` WHERE `a` = ? NULL fields not supported +drop table t1; +drop table t2; +drop table t3; +drop table t4; SELECT @@rocksdb_select_bypass_fail_unsupported; @@rocksdb_select_bypass_fail_unsupported 0 @@ -622,7 +1168,11 @@ set global rocksdb_select_bypass_rejected_query_history_size=0; SELECT @@rocksdb_select_bypass_rejected_query_history_size; @@rocksdb_select_bypass_rejected_query_history_size 0 -drop table t1; -drop table t2; -drop table t3; -drop table t4; +set global rocksdb_select_bypass_allow_filters=@save_rocksdb_select_bypass_allow_filters; +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +opt_in +set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; +SELECT @@rocksdb_select_bypass_policy; +@@rocksdb_select_bypass_policy +always_off diff --git a/mysql-test/suite/rocksdb/t/bypass_select_unsupported.inc b/mysql-test/suite/rocksdb/t/bypass_select_unsupported.inc new file mode 100644 index 000000000000..5f9219f426dd --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_select_unsupported.inc @@ -0,0 +1,467 @@ +create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; +create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; + +# Interesting SELECT patterns that are not supported +# Use https://dev.mysql.com/doc/refman/5.7/en/select.html as reference + +# Unsupported having +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk=1 having pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +set global rocksdb_select_bypass_rejected_query_history_size=3; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; + +# Unsupported group by +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk=1 group by pk; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Unsupported select * +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ * from t1 WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ 1 from t1 WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ 1+2 from t1 WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ COUNT(*) from t1 WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ COUNT(pk) from t1 WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk+1 from t1 WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Unsupported index +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 USE INDEX (PRIMARY) WHERE pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Unsupported WHERE +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk=1 or pk=2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND a = 1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +SELECT /*+ bypass */ pk from t1 WHERE pk = 1 AND a = 1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b = 2 AND c = 3 AND d > 4; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b = 2 AND c > 3 AND d > 4; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b = 2 AND d > 4; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ d from t1 FORCE INDEX (a) +WHERE a = 1 AND b > 2 AND d > 4; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; + + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; + +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk<=>1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +SELECT /*+ bypass */ pk from t1 WHERE pk=(1,2,3); +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +set global rocksdb_select_bypass_rejected_query_history_size=4; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; +} + +# DATE/TIME/TIMESTAMP are constant functions +#--error ER_OPERAND_COLUMNS +SELECT /*+ bypass */ pk from t1 WHERE pk=DATE '2019-03-25'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +#--error ER_OPERAND_COLUMNS +SELECT /*+ bypass */ pk from t1 WHERE pk=TIME '18:01:00'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +#--error ER_OPERAND_COLUMNS +SELECT /*+ bypass */ pk from t1 WHERE pk=TIMESTAMP '2019-03-25 18:01:00'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk=ANY (SELECT pk FROM t1); +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ pk from t1 WHERE pk>ALL (SELECT pk FROM t1); +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Select modifiers +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ DISTINCT a from t1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ ALL a, b from t1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; +set global rocksdb_select_bypass_rejected_query_history_size=1; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Joins +SELECT /*+ bypass */ t1.pk, t2.pk from t1, t2; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +SELECT /*+ bypass */ t1.pk FROM t1 LEFT JOIN t2 using (pk) +WHERE t1.pk=1; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Subselect +SELECT /*+ bypass */ pk, a from (SELECT pk, a FROM t1) AS t1_temp; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Union +SELECT /*+ bypass */ pk FROM t1 WHERE pk=3 UNION DISTINCT +SELECT pk FROM t2 WHERE pk=3; +SELECT /*+ bypass */ pk FROM t1 WHERE pk=3 UNION ALL +SELECT pk FROM t2 WHERE pk=3; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Index order +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 WHERE a=1 ORDER BY a; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, a; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 +ORDER BY a, b, c, c, c, a, b, c, d; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY c, a; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY a, a; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 +ORDER BY a, a, a, a, a, a, a, a; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, b; + +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t3 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, b; + +SHOW STATUS LIKE 'rocksdb_select_bypass%'; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# Unrecognized index +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`abc`) WHERE a=1 ORDER BY b, a; +} + +# INTO @var +# SELECT /*+ bypass */ pk into @a FROM t1 +# WHERE pk=1; +# SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +# INTO OUTFILE +let $datadir = `SELECT @@datadir`; +--replace_result $datadir + +--replace_result $datadir datadir +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +eval SELECT /*+ bypass */ a from t1 WHERE a=1 INTO OUTFILE '$datadir/select.out'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +--replace_result $datadir datadir +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +eval SELECT /*+ bypass */ a from t1 WHERE a=1 INTO DUMPFILE '$datadir/select.dump'; +SHOW STATUS LIKE 'rocksdb_select_bypass%'; + +# FOR UPDATE +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE SKIP LOCKED; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE NOWAIT; +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 LOCK IN SHARE MODE; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# HIGH PRIORITY +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ HIGH_PRIORITY a, b, c FROM t3 WHERE pk=1; + +# Too many WHERE expressions +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a FROM t3 WHERE a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND + a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND + a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND + a=1 AND a=1; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +# NULL fields not supported +if ($bypass_fallback==0) { +--error ER_NOT_SUPPORTED_YET +} +SELECT /*+ bypass */ a FROM t4 WHERE a=1; +SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; + +drop table t1; +drop table t2; +drop table t3; +drop table t4; diff --git a/mysql-test/suite/rocksdb/t/bypass_select_unsupported.test b/mysql-test/suite/rocksdb/t/bypass_select_unsupported.test index ad0f145928c7..0b6c66a38766 100644 --- a/mysql-test/suite/rocksdb/t/bypass_select_unsupported.test +++ b/mysql-test/suite/rocksdb/t/bypass_select_unsupported.test @@ -15,353 +15,22 @@ SELECT @@rocksdb_select_bypass_allow_filters into @save_rocksdb_select_bypass_allow_filters; set global rocksdb_select_bypass_allow_filters=0; -create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, -c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; -create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, -c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; -create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, -c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; -create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; +SELECT @@rocksdb_select_bypass_rejected_query_history_size; SELECT @@rocksdb_select_bypass_fail_unsupported; SELECT @@rocksdb_select_bypass_fail_unsupported into @save_fail_unsupported; + +--echo Test bypass failing with unsupported scenario set global rocksdb_select_bypass_fail_unsupported=true; +--let bypass_fallback=0 SELECT @@rocksdb_select_bypass_fail_unsupported; +--source ./bypass_select_unsupported.inc -SELECT @@rocksdb_select_bypass_rejected_query_history_size; - -# Interesting SELECT patterns that are not supported -# Use https://dev.mysql.com/doc/refman/5.7/en/select.html as reference - -# Unsupported having ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk=1 having pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; -set global rocksdb_select_bypass_rejected_query_history_size=3; -SELECT @@rocksdb_select_bypass_rejected_query_history_size; - -# Unsupported group by ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk=1 group by pk; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Unsupported select * ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ * from t1 WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ 1 from t1 WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ 1+2 from t1 WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ COUNT(*) from t1 WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ COUNT(pk) from t1 WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk+1 from t1 WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Unsupported index ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 USE INDEX (PRIMARY) WHERE pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Unsupported WHERE ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk=1 or pk=2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND a = 1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - -SELECT /*+ bypass */ pk from t1 WHERE pk = 1 AND a = 1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - -SELECT /*+ bypass */ d from t1 FORCE INDEX (a) -WHERE a = 1 AND b = 2 AND c = 3 AND d > 4; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - -SELECT /*+ bypass */ d from t1 FORCE INDEX (a) -WHERE a = 1 AND b = 2 AND c > 3 AND d > 4; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ d from t1 FORCE INDEX (a) -WHERE a = 1 AND b = 2 AND d > 4; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ d from t1 FORCE INDEX (a) -WHERE a = 1 AND b > 2 AND d > 4; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; - -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk<=>1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk=(1,2,3); -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; -set global rocksdb_select_bypass_rejected_query_history_size=4; -SELECT @@rocksdb_select_bypass_rejected_query_history_size; - -# DATE/TIME/TIMESTAMP are constant functions -#--error ER_OPERAND_COLUMNS -SELECT /*+ bypass */ pk from t1 WHERE pk=DATE '2019-03-25'; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -#--error ER_OPERAND_COLUMNS -SELECT /*+ bypass */ pk from t1 WHERE pk=TIME '18:01:00'; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -#--error ER_OPERAND_COLUMNS -SELECT /*+ bypass */ pk from t1 WHERE pk=TIMESTAMP '2019-03-25 18:01:00'; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk=ANY (SELECT pk FROM t1); -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ pk from t1 WHERE pk>ALL (SELECT pk FROM t1); -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Select modifiers ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ DISTINCT a from t1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ ALL a, b from t1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; -set global rocksdb_select_bypass_rejected_query_history_size=1; -SELECT @@rocksdb_select_bypass_rejected_query_history_size; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Joins -SELECT /*+ bypass */ t1.pk, t2.pk from t1, t2; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -SELECT /*+ bypass */ t1.pk FROM t1 LEFT JOIN t2 using (pk) -WHERE t1.pk=1; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Subselect -SELECT /*+ bypass */ pk, a from (SELECT pk, a FROM t1) AS t1_temp; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Union -SELECT /*+ bypass */ pk FROM t1 WHERE pk=3 UNION DISTINCT -SELECT pk FROM t2 WHERE pk=3; -SELECT /*+ bypass */ pk FROM t1 WHERE pk=3 UNION ALL -SELECT pk FROM t2 WHERE pk=3; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Index order ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 WHERE a=1 ORDER BY a; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, a; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 -ORDER BY a, b, c, c, c, a, b, c, d; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY c, a; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY a, a; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 -ORDER BY a, a, a, a, a, a, a, a; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, b; - ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t3 FORCE INDEX(`a`) WHERE a=1 ORDER BY b, b; - -SHOW STATUS LIKE 'rocksdb_select_bypass%'; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Unrecognized index ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t1 FORCE INDEX(`abc`) WHERE a=1 ORDER BY b, a; - -# INTO @var -# SELECT /*+ bypass */ pk into @a FROM t1 -# WHERE pk=1; -# SHOW STATUS LIKE 'rocksdb_select_bypass%'; - -# INTO OUTFILE -let $datadir = `SELECT @@datadir`; ---replace_result $datadir - ---replace_result $datadir datadir ---error ER_NOT_SUPPORTED_YET -eval SELECT /*+ bypass */ a from t1 WHERE a=1 INTO OUTFILE '$datadir/select.out'; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - ---replace_result $datadir datadir ---error ER_NOT_SUPPORTED_YET -eval SELECT /*+ bypass */ a from t1 WHERE a=1 INTO DUMPFILE '$datadir/select.dump'; -SHOW STATUS LIKE 'rocksdb_select_bypass%'; - -# FOR UPDATE ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE; ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE SKIP LOCKED; ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 FOR UPDATE NOWAIT; ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a, b, c FROM t3 WHERE pk=1 LOCK IN SHARE MODE; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# HIGH PRIORITY ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ HIGH_PRIORITY a, b, c FROM t3 WHERE pk=1; - -# Too many WHERE expressions ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a FROM t3 WHERE a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND - a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND - a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND - a=1 AND a=1; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# NULL fields not supported ---error ER_NOT_SUPPORTED_YET -SELECT /*+ bypass */ a FROM t4 WHERE a=1; -SELECT QUERY, ERROR_MSG from information_schema.ROCKSDB_BYPASS_REJECTED_QUERY_HISTORY; - -# Restore rocksdb_select_bypass_policy -SELECT @@rocksdb_select_bypass_policy; -set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; -SELECT @@rocksdb_select_bypass_policy; - -set global rocksdb_select_bypass_allow_filters= -@save_rocksdb_select_bypass_allow_filters; - -# Fallback -SELECT @@rocksdb_select_bypass_fail_unsupported; +--echo Test bypass fallback with unsupported scenario set global rocksdb_select_bypass_fail_unsupported=false; +--let bypass_fallback=1 SELECT @@rocksdb_select_bypass_fail_unsupported; - -SELECT /*+ bypass */ * from t1; - -# Unsupported range query patterns -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2 AND pk > 3; -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk > 2; -SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk >= 2; -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; -SELECT /*+ bypass */ pk from t1 WHERE pk >= 1 AND pk > 2; -SELECT /*+ bypass */ pk from t1 WHERE pk > 1 AND pk >= 2; -SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk < 2; -SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk <= 2; -SELECT /*+ bypass */ pk from t1 WHERE pk < 1 AND pk <= 2; -SELECT /*+ bypass */ pk from t1 WHERE pk <= 1 AND pk < 2; - -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0; -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b in (1, 2); -SELECT /*+ bypass */ a, b, c from t1 WHERE a > 0 and b > 0 and c > 0; +--source ./bypass_select_unsupported.inc SELECT @@rocksdb_select_bypass_fail_unsupported; set global rocksdb_select_bypass_fail_unsupported=@save_fail_unsupported; @@ -370,7 +39,9 @@ SELECT @@rocksdb_select_bypass_fail_unsupported; set global rocksdb_select_bypass_rejected_query_history_size=0; SELECT @@rocksdb_select_bypass_rejected_query_history_size; -drop table t1; -drop table t2; -drop table t3; -drop table t4; +set global rocksdb_select_bypass_allow_filters=@save_rocksdb_select_bypass_allow_filters; + +# Restore rocksdb_select_bypass_policy +SELECT @@rocksdb_select_bypass_policy; +set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; +SELECT @@rocksdb_select_bypass_policy; diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 583cb29f4520..94ab4e5d0d8f 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -6990,6 +6990,14 @@ bool lock_tables(THD *thd, TABLE_LIST *tables, uint count, uint flags) { */ if (!thd->locked_tables_mode) { DBUG_ASSERT(thd->lock == nullptr); // You must lock everything at once + if (thd->lock != nullptr) { + // If we detect leaking thd->lock at runtime we must abort immediately + // THD_LOCK_DATA leaks are insanely difficult to root cause + // NO_LINT_DEBUG + sql_print_error("thd->lock leak detected. Aborting..."); + abort(); + } + TABLE **start, **ptr; if (!(ptr = start = (TABLE **)thd->alloc(sizeof(TABLE *) * count))) diff --git a/sql/sql_select.cc b/sql/sql_select.cc index e2eae5dc8fb0..2d5fb71b023e 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -625,7 +625,6 @@ bool Sql_cmd_dml::execute(THD *thd) { // Revertable changes are not supported during preparation DBUG_ASSERT(thd->change_list.is_empty()); - DBUG_ASSERT(m_bypassed || !lex->is_query_tables_locked()); /* Locking of tables is done after preparation but before optimization. This allows to do better partition pruning and avoid locking unused @@ -636,7 +635,10 @@ bool Sql_cmd_dml::execute(THD *thd) { locking the table, so locking again is not necessary. */ if (!m_bypassed && !is_empty_query()) { - if (lock_tables(thd, lex->query_tables, lex->table_count, 0)) goto err; + /* in case bypass has already locked the table but decided to fallback */ + if (!lex->is_query_tables_locked()) { + if (lock_tables(thd, lex->query_tables, lex->table_count, 0)) goto err; + } } thd->pre_exec_time = my_timer_now(); From d9fd7c689a8e421fda247ba473a29761c1452a4e Mon Sep 17 00:00:00 2001 From: "Jupyung Lee (JP)" Date: Thu, 2 Jun 2022 18:11:04 -0700 Subject: [PATCH 09/17] add a missing file to libservices Summary: Previously, I added a definition for a new service, rpc_plugin_service, to include/mysql/service_rpc_plugin.h file, but not in libservices. As a result, if a test plugin calling rpc_plugin_service is built with MYSQL_DYNAMIC_PLUGIN option, it fails to find it. This diff fixes this issue by adding rpc_plugin_service to libservices. Reviewed By: abal147 Differential Revision: D36888689 fbshipit-source-id: e73a86384815d8f3db409896ab25a95d8b07dc70 --- libservices/CMakeLists.txt | 3 ++- libservices/rpc_plugin_service.c | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 libservices/rpc_plugin_service.c diff --git a/libservices/CMakeLists.txt b/libservices/CMakeLists.txt index b03d84f6e7f3..4aab0ffa776b 100644 --- a/libservices/CMakeLists.txt +++ b/libservices/CMakeLists.txt @@ -1,5 +1,5 @@ # Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved. -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. @@ -40,6 +40,7 @@ SET(MYSQLSERVICES_SOURCES mysql_password_policy_service.c parser_service.c srv_session_info_service.c + rpc_plugin_service.c rpl_transaction_ctx_service.c rpl_transaction_write_set_service.c security_context_service.c diff --git a/libservices/rpc_plugin_service.c b/libservices/rpc_plugin_service.c new file mode 100644 index 000000000000..ceda91f3f131 --- /dev/null +++ b/libservices/rpc_plugin_service.c @@ -0,0 +1,26 @@ + +/* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License, version 2.0, + as published by the Free Software Foundation. + + This program is also distributed with certain software (including + but not limited to OpenSSL) that is licensed under separate terms, + as designated in a particular file or component or in included license + documentation. The authors of MySQL hereby grant you an additional + permission to link the program and your derivative works with the + separately licensed software that they have included with MySQL. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License, version 2.0, for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + +#include "service_versions.h" + +SERVICE_VERSION *rpc_plugin_service = (void **)VERSION_rpc_plugin_service; From fda095d9a7d665602677f90de2d88dace2c90a08 Mon Sep 17 00:00:00 2001 From: Luqun Lou Date: Mon, 6 Jun 2022 12:00:24 -0700 Subject: [PATCH 10/17] update innodb.alter_kill MTR Summary: There is a new warning(38) generated when calling realpath with "./#innodb_temp" in container Temporarily ignore warning 38 before container fix Reviewed By: Pushapgl Differential Revision: D36943225 fbshipit-source-id: 7d40d5be4712f601da63a65110ff92f4f229e23b --- mysql-test/suite/innodb/t/alter_kill.test | 1 + 1 file changed, 1 insertion(+) diff --git a/mysql-test/suite/innodb/t/alter_kill.test b/mysql-test/suite/innodb/t/alter_kill.test index a653faf8091f..b955e1934039 100644 --- a/mysql-test/suite/innodb/t/alter_kill.test +++ b/mysql-test/suite/innodb/t/alter_kill.test @@ -24,6 +24,7 @@ call mtr.add_suppression("Error number [0-9]* means 'Resource temporarily unavai call mtr.add_suppression("Skip updating information_schema metadata in InnoDB read-only mode."); call mtr.add_suppression(".*MY-\d+.* Tablespace [0-9]+, name 'test.*bug16720368', unable to open file '.*test.*bug16720368.ibd' - Data structure corruption"); call mtr.add_suppression("Skipped updating resource group metadata in InnoDB read only mode."); +call mtr.add_suppression("Error number 38 means 'Function not implemented'"); -- enable_query_log -- echo # From f794782fb9f0f853045996be6b1144fb3858c65e Mon Sep 17 00:00:00 2001 From: Satya Valluri Date: Mon, 6 Jun 2022 09:46:46 -0700 Subject: [PATCH 11/17] Fix dumping into compressed outfile Summary: Fixes the issue where adding 'COMPRESSED' keyword to 'INTO OUTFILE' crashes. The fix is to set the IO_CACHE structure properly for the compressed case. Reviewed By: hermanlee Differential Revision: D36937776 fbshipit-source-id: 059c78b7e65cdc43c980089ac8939aa8ff12625c --- .../r/select_into_outfile_compressed.result | 5 +++++ mysql-test/t/select_into_outfile_compressed.test | 16 ++++++++++++++++ mysys/mf_io_cache_compressor.cc | 3 +++ 3 files changed, 24 insertions(+) diff --git a/mysql-test/r/select_into_outfile_compressed.result b/mysql-test/r/select_into_outfile_compressed.result index dd66d8afee4f..0e579a65df91 100644 --- a/mysql-test/r/select_into_outfile_compressed.result +++ b/mysql-test/r/select_into_outfile_compressed.result @@ -16,4 +16,9 @@ LOAD DATA INFILE 'INPUT_FILE_BIG_ROW' INTO TABLE t10;; SELECT * FROM t10 INTO OUTFILE 'OUTPUT_FILE_BIG_ROW' COMPRESSED;; SELECT * FROM t10 INTO OUTFILE 'ERROR_OUTPUT_FILE' COMPRESSED(0);; ERROR HY000: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement +set @saved_select_into_file_fsync_size = @@session.select_into_file_fsync_size; +set @@session.select_into_file_fsync_size = 67108864; +SELECT 1 INTO OUTFILE 'OUTPUT_FILE4';; +SELECT 1 INTO OUTFILE 'OUTPUT_FILE4' COMPRESSED;; +set @@session.select_into_file_fsync_size = @saved_select_into_file_fsync_size; DROP TABLE t1, t10; diff --git a/mysql-test/t/select_into_outfile_compressed.test b/mysql-test/t/select_into_outfile_compressed.test index aff8642baf3d..480186ebe9b0 100644 --- a/mysql-test/t/select_into_outfile_compressed.test +++ b/mysql-test/t/select_into_outfile_compressed.test @@ -97,6 +97,20 @@ CREATE TABLE t10(x varchar(5001)); --error ER_OPTION_PREVENTS_STATEMENT --eval SELECT * FROM t10 INTO OUTFILE '$error_output_file' COMPRESSED(0); +set @saved_select_into_file_fsync_size = @@session.select_into_file_fsync_size; +set @@session.select_into_file_fsync_size = 67108864; + +# dump data into file +--let $output_file4=$tmp_dir/t4.txt +--replace_result $output_file4 OUTPUT_FILE4 +--eval SELECT 1 INTO OUTFILE '$output_file4'; +# dump data into file, compressed +--let $output_file_zstd4=$tmp_dir/t4.txt.0.zst +--replace_result $output_file4 OUTPUT_FILE4 +--eval SELECT 1 INTO OUTFILE '$output_file4' COMPRESSED; + +set @@session.select_into_file_fsync_size = @saved_select_into_file_fsync_size; + # cleanup --remove_file $output_file --remove_file $output_file_zstd @@ -105,5 +119,7 @@ CREATE TABLE t10(x varchar(5001)); --remove_file $output_file_zstd3 --remove_file $input_file_big_row --remove_file $output_file_zstd_big_row +--remove_file $output_file4 +--remove_file $output_file_zstd4 DROP TABLE t1, t10; diff --git a/mysys/mf_io_cache_compressor.cc b/mysys/mf_io_cache_compressor.cc index 6d6d2b92f151..3826c388a62c 100644 --- a/mysys/mf_io_cache_compressor.cc +++ b/mysys/mf_io_cache_compressor.cc @@ -47,6 +47,9 @@ class compressor { throw std::runtime_error("error initializing file cache"); info->write_pos = zstd_in_buf.data(); info->write_end = zstd_in_buf.data() + zstd_in_buf.size(); + info->pos_in_file = cache.pos_in_file; + info->request_pos = cache.request_pos; + info->current_pos = cache.current_pos; } compressor(const compressor &) = delete; From c266fdc391fc33c8cc428c4ca7a717344276ca76 Mon Sep 17 00:00:00 2001 From: "Jupyung Lee (JP)" Date: Wed, 8 Jun 2022 10:20:46 -0700 Subject: [PATCH 12/17] Fix in test_service_privacy Summary: While working on adding a new mtr test previously, I mistakenly deleted one line in test_service_privacy. This diff recovers the line. Reviewed By: jasson15 Differential Revision: D37008888 fbshipit-source-id: 7e3a6546f919cd8ae4fe16aac6b32a558d925ae4 --- .../t/test_build_column_lineage_info-master.opt | 1 + 1 file changed, 1 insertion(+) diff --git a/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt b/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt index e69de29bb2d1..c999ac76676a 100644 --- a/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt +++ b/mysql-test/suite/test_service_privacy/t/test_build_column_lineage_info-master.opt @@ -0,0 +1 @@ +$TEST_BUILD_COLUMN_LINEAGE_INFO_OPT From 1021e6e401eb7c9365604fdb9883826fc59b2796 Mon Sep 17 00:00:00 2001 From: Luqun Lou Date: Sat, 21 May 2022 13:59:20 -0700 Subject: [PATCH 13/17] Add SE_PRIVATE_DATA into I_S.tables and I_S.columns Summary: Currently SE_PRIVATE_DATA field only exists in mysql.tables /mysql.columns and it contains useful/critical information about instant DDL. Innodb expose these SE_PRIVATE_DATA information from mysql.tables /mysql.columns into I_S.innodb_tables/ I_S.innodb_columns. For myrocks, Currently it doesn't have its own I_S.rocksdb_tables and I_S.rocksdb_columns. thus, expose SE_PRIVATE_DATA into I_S.tables/I_S.columns instead Reviewed By: yizhang82 Differential Revision: D36579195 fbshipit-source-id: 270824a2d84a041e03a0f163b0abec4d2fe473ea --- mysql-test/r/create.result | 10 +- mysql-test/r/dd_is_compatibility_cs.result | 2 +- mysql-test/r/dd_upgrade_test.result | 22 +- mysql-test/r/deprecated_features.result | 4 +- mysql-test/r/dictionary_timestamp.result | 16 +- mysql-test/r/information_schema_cs.result | 28 +- .../r/information_schema_parameters.result | 16 + .../r/information_schema_routines.result | 31 + mysql-test/r/merge_myisam.result | 4 +- mysql-test/r/type_temporal_fractional.result | 3 + .../r/i_s_schema_definition_debug.result | 18 +- .../r/information_schema_db.result | 8 +- .../t/i_s_schema_definition_debug.test | 6 + .../r/ddl_events_stages_current.result | 6 +- .../r/ddl_events_stages_history.result | 6 +- .../r/ddl_events_stages_history_long.result | 6 +- .../suite/perfschema/r/esms_by_all.result | 3 +- .../r/table_component_lifecycle.result | 8 +- .../perfschema/r/table_plugin_in_use.result | 6 +- .../r/table_plugin_lifecycle.result | 8 +- .../suite/perfschema/r/table_schema.result | 3320 ++++++++--------- .../suite/perfschema/t/esms_by_all.test | 3 +- .../rocksdb/r/instant_add_column_basic.result | 2 +- .../rocksdb/t/instant_add_column_basic.test | 2 +- .../thread_pool/r/table_plugin_in_use.result | 6 +- mysql-test/t/create.test | 1 + mysql-test/t/information_schema_cs.test | 1 + mysql-test/t/type_temporal_fractional.test | 6 +- sql/dd/impl/system_views/columns.cc | 2 + sql/dd/impl/system_views/columns.h | 3 +- sql/dd/impl/system_views/tables.cc | 2 + sql/dd/impl/system_views/tables.h | 3 +- sql/dd/info_schema/metadata.h | 8 +- 33 files changed, 1822 insertions(+), 1748 deletions(-) diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index 6b579dd8e48f..c62bbc73cb05 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -2972,11 +2972,11 @@ t1 CREATE TABLE `t1` ( `d` tinyint(1) unsigned zerofill DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def test t1 a 1 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint(1) select,insert,update,references NULL -def test t1 b 2 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint(1) select,insert,update,references NULL -def test t1 c 3 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint unsigned select,insert,update,references NULL -def test t1 d 4 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint(1) unsigned zerofill select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def test t1 a 1 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint(1) select,insert,update,references NULL # +def test t1 b 2 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint(1) select,insert,update,references NULL # +def test t1 c 3 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint unsigned select,insert,update,references NULL # +def test t1 d 4 NULL YES tinyint NULL NULL 3 0 NULL NULL NULL tinyint(1) unsigned zerofill select,insert,update,references NULL # DESCRIBE t1; Field Type Null Key Default Extra a tinyint(1) YES NULL diff --git a/mysql-test/r/dd_is_compatibility_cs.result b/mysql-test/r/dd_is_compatibility_cs.result index d1232e36cb93..fc6bd115efa6 100644 --- a/mysql-test/r/dd_is_compatibility_cs.result +++ b/mysql-test/r/dd_is_compatibility_cs.result @@ -64,7 +64,7 @@ tables_priv # I_S view definitions. SHOW CREATE TABLE information_schema.tables; View Create View character_set_client collation_connection -TABLES CREATE ALGORITHM=UNDEFINED DEFINER=`mysql.infoschema`@`localhost` SQL SECURITY DEFINER VIEW `information_schema`.`TABLES` AS select `cat`.`name` AS `TABLE_CATALOG`,`sch`.`name` AS `TABLE_SCHEMA`,`tbl`.`name` AS `TABLE_NAME`,`tbl`.`type` AS `TABLE_TYPE`,if((`tbl`.`type` = 'BASE TABLE'),`tbl`.`engine`,NULL) AS `ENGINE`,if((`tbl`.`type` = 'VIEW'),NULL,10) AS `VERSION`,`tbl`.`row_format` AS `ROW_FORMAT`,if((`tbl`.`type` = 'VIEW'),NULL,internal_table_rows(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`table_rows`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `TABLE_ROWS`,if((`tbl`.`type` = 'VIEW'),NULL,internal_avg_row_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`avg_row_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `AVG_ROW_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_data_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`data_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `DATA_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_max_data_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`max_data_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `MAX_DATA_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_index_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`index_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `INDEX_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_data_free(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`data_free`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `DATA_FREE`,if((`tbl`.`type` = 'VIEW'),NULL,internal_auto_increment(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`auto_increment`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0),`tbl`.`se_private_data`)) AS `AUTO_INCREMENT`,`tbl`.`created` AS `CREATE_TIME`,if((`tbl`.`type` = 'VIEW'),NULL,internal_update_time(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(cast(`stat`.`update_time` as unsigned),0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `UPDATE_TIME`,if((`tbl`.`type` = 'VIEW'),NULL,internal_check_time(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(cast(`stat`.`check_time` as unsigned),0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `CHECK_TIME`,`col`.`name` AS `TABLE_COLLATION`,if((`tbl`.`type` = 'VIEW'),NULL,internal_checksum(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`checksum`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `CHECKSUM`,if((`tbl`.`type` = 'VIEW'),NULL,get_dd_create_options(`tbl`.`options`,if((ifnull(`tbl`.`partition_expression`,'NOT_PART_TBL') = 'NOT_PART_TBL'),0,1),if((`sch`.`default_encryption` = 'YES'),1,0))) AS `CREATE_OPTIONS`,internal_get_comment_or_error(`sch`.`name`,`tbl`.`name`,`tbl`.`type`,`tbl`.`options`,`tbl`.`comment`) AS `TABLE_COMMENT` from (((((`mysql`.`tables` `tbl` join `mysql`.`schemata` `sch` on((`tbl`.`schema_id` = `sch`.`id`))) join `mysql`.`catalogs` `cat` on((`cat`.`id` = `sch`.`catalog_id`))) left join `mysql`.`collations` `col` on((`tbl`.`collation_id` = `col`.`id`))) left join `mysql`.`tablespaces` `ts` on((`tbl`.`tablespace_id` = `ts`.`id`))) left join `mysql`.`table_stats` `stat` on(((`tbl`.`name` = `stat`.`table_name`) and (`sch`.`name` = `stat`.`schema_name`)))) where ((0 <> can_access_table(`sch`.`name`,`tbl`.`name`)) and (0 <> is_visible_dd_object(`tbl`.`hidden`))) utf8 utf8_general_ci +TABLES CREATE ALGORITHM=UNDEFINED DEFINER=`mysql.infoschema`@`localhost` SQL SECURITY DEFINER VIEW `information_schema`.`TABLES` AS select `cat`.`name` AS `TABLE_CATALOG`,`sch`.`name` AS `TABLE_SCHEMA`,`tbl`.`name` AS `TABLE_NAME`,`tbl`.`type` AS `TABLE_TYPE`,if((`tbl`.`type` = 'BASE TABLE'),`tbl`.`engine`,NULL) AS `ENGINE`,if((`tbl`.`type` = 'VIEW'),NULL,10) AS `VERSION`,`tbl`.`row_format` AS `ROW_FORMAT`,if((`tbl`.`type` = 'VIEW'),NULL,internal_table_rows(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`table_rows`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `TABLE_ROWS`,if((`tbl`.`type` = 'VIEW'),NULL,internal_avg_row_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`avg_row_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `AVG_ROW_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_data_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`data_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `DATA_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_max_data_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`max_data_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `MAX_DATA_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_index_length(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`index_length`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `INDEX_LENGTH`,if((`tbl`.`type` = 'VIEW'),NULL,internal_data_free(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`data_free`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `DATA_FREE`,if((`tbl`.`type` = 'VIEW'),NULL,internal_auto_increment(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`auto_increment`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0),`tbl`.`se_private_data`)) AS `AUTO_INCREMENT`,`tbl`.`created` AS `CREATE_TIME`,if((`tbl`.`type` = 'VIEW'),NULL,internal_update_time(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(cast(`stat`.`update_time` as unsigned),0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `UPDATE_TIME`,if((`tbl`.`type` = 'VIEW'),NULL,internal_check_time(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(cast(`stat`.`check_time` as unsigned),0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `CHECK_TIME`,`col`.`name` AS `TABLE_COLLATION`,if((`tbl`.`type` = 'VIEW'),NULL,internal_checksum(`sch`.`name`,`tbl`.`name`,if((`tbl`.`partition_type` is null),`tbl`.`engine`,''),`tbl`.`se_private_id`,(`tbl`.`hidden` <> 'Visible'),`ts`.`se_private_data`,coalesce(`stat`.`checksum`,0),coalesce(cast(`stat`.`cached_time` as unsigned),0))) AS `CHECKSUM`,if((`tbl`.`type` = 'VIEW'),NULL,get_dd_create_options(`tbl`.`options`,if((ifnull(`tbl`.`partition_expression`,'NOT_PART_TBL') = 'NOT_PART_TBL'),0,1),if((`sch`.`default_encryption` = 'YES'),1,0))) AS `CREATE_OPTIONS`,internal_get_comment_or_error(`sch`.`name`,`tbl`.`name`,`tbl`.`type`,`tbl`.`options`,`tbl`.`comment`) AS `TABLE_COMMENT`,`tbl`.`se_private_data` AS `TABLE_SE_PRIVATE_DATA` from (((((`mysql`.`tables` `tbl` join `mysql`.`schemata` `sch` on((`tbl`.`schema_id` = `sch`.`id`))) join `mysql`.`catalogs` `cat` on((`cat`.`id` = `sch`.`catalog_id`))) left join `mysql`.`collations` `col` on((`tbl`.`collation_id` = `col`.`id`))) left join `mysql`.`tablespaces` `ts` on((`tbl`.`tablespace_id` = `ts`.`id`))) left join `mysql`.`table_stats` `stat` on(((`tbl`.`name` = `stat`.`table_name`) and (`sch`.`name` = `stat`.`schema_name`)))) where ((0 <> can_access_table(`sch`.`name`,`tbl`.`name`)) and (0 <> is_visible_dd_object(`tbl`.`hidden`))) utf8 utf8_general_ci ######################################################### # Issue WL#6599/HLS/6c): Capital cased I_S table column names. ######################################################### diff --git a/mysql-test/r/dd_upgrade_test.result b/mysql-test/r/dd_upgrade_test.result index a66d6cedd07e..5a79044f3969 100644 --- a/mysql-test/r/dd_upgrade_test.result +++ b/mysql-test/r/dd_upgrade_test.result @@ -435,8 +435,8 @@ DESC `test`.`initial_vü`; Field Type Null Key Default Extra cü char(1) YES NULL SELECT * FROM information_schema.tables WHERE table_schema = 'test' and table_type='VIEW'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test initial_vü VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL CREATE_TIME NULL NULL NULL NULL NULL VIEW +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test initial_vü VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL CREATE_TIME NULL NULL NULL NULL NULL VIEW NULL SET names default; #Test case for Bug#26636238 SHOW CREATE TABLE performance_schema.threads; @@ -671,15 +671,15 @@ x y 3 5 SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='view_with_column_names' ORDER BY TABLE_NAME,ORDINAL_POSITION; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def view_with_column_names t1 x 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names t1 y 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names v1 a 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names v1 b 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names v2 e 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names v2 f 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names v3 x 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def view_with_column_names v3 y 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def view_with_column_names t1 x 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names t1 y 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names v1 a 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names v1 b 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names v2 e 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names v2 f 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names v3 x 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def view_with_column_names v3 y 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL # Bug #28480149 "UPGRADE FAIL: FAILED TO ADD THE FOREIGN KEY CONSTRAINT. # MISSING INDEX FOR CONSTR". Coverage for upgrade scenario. Main part # of coverage resides in foreign_key test. diff --git a/mysql-test/r/deprecated_features.result b/mysql-test/r/deprecated_features.result index fadcb22f6791..770981a6a13c 100644 --- a/mysql-test/r/deprecated_features.result +++ b/mysql-test/r/deprecated_features.result @@ -526,10 +526,10 @@ TABLESPACE_NAME ENGINE TABLESPACE_TYPE LOGFILE_GROUP_NAME EXTENT_SIZE AUTOEXTEND Warnings: Warning 1681 'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release. SELECT * FROM INFORMATION_SCHEMA.TABLES JOIN INFORMATION_SCHEMA.TABLESPACES; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLESPACE_NAME ENGINE TABLESPACE_TYPE LOGFILE_GROUP_NAME EXTENT_SIZE AUTOEXTEND_SIZE MAXIMUM_SIZE NODEGROUP_ID TABLESPACE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA TABLESPACE_NAME ENGINE TABLESPACE_TYPE LOGFILE_GROUP_NAME EXTENT_SIZE AUTOEXTEND_SIZE MAXIMUM_SIZE NODEGROUP_ID TABLESPACE_COMMENT Warnings: Warning 1681 'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release. SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME IN (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLESPACES); -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA Warnings: Warning 1681 'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release. diff --git a/mysql-test/r/dictionary_timestamp.result b/mysql-test/r/dictionary_timestamp.result index 3585d6b82585..7c73ba027374 100644 --- a/mysql-test/r/dictionary_timestamp.result +++ b/mysql-test/r/dictionary_timestamp.result @@ -15,12 +15,12 @@ EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINIT def test event1 root@localhost +00:00 SQL BEGIN END RECURRING NULL 15 MINUTE ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION 1970-01-01 00:16:40 NULL ENABLED NOT PRESERVE 1970-01-01 00:16:40 1970-01-01 00:16:40 # 1 utf8mb4 utf8mb4_0900_ai_ci utf8mb4_0900_ai_ci CREATE VIEW v1 AS SELECT 1; SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='v1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test v1 VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1970-01-01 00:16:40 NULL NULL NULL NULL NULL VIEW +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test v1 VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1970-01-01 00:16:40 NULL NULL NULL NULL NULL VIEW NULL CREATE TABLE t1(a int); SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test t1 BASE TABLE InnoDB 10 Dynamic 0 0 16384 0 0 0 NULL 1970-01-01 00:16:40 NULL NULL utf8mb4_0900_ai_ci NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test t1 BASE TABLE InnoDB 10 Dynamic 0 0 16384 0 0 0 NULL 1970-01-01 00:16:40 NULL NULL utf8mb4_0900_ai_ci NULL NULL CREATE FUNCTION hello (s CHAR(20)) RETURNS CHAR(50) DETERMINISTIC RETURN CONCAT('Hello, ',s,'!'); SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME='hello'; SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION @@ -32,13 +32,13 @@ def test event2 root@localhost +00:00 SQL BEGIN END RECURRING NULL 15 MINUTE ONL DROP event event2; ALTER VIEW v1 AS SELECT 2; SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='v1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test v1 VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1970-01-01 05:46:40 NULL NULL NULL NULL NULL VIEW +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test v1 VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1970-01-01 05:46:40 NULL NULL NULL NULL NULL VIEW NULL DROP VIEW v1; RENAME TABLE t1 TO t2; SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t2'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test t2 BASE TABLE InnoDB 10 Dynamic 0 0 16384 0 0 0 NULL 1970-01-01 05:46:40 NULL NULL utf8mb4_0900_ai_ci NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test t2 BASE TABLE InnoDB 10 Dynamic 0 0 16384 0 0 0 NULL 1970-01-01 05:46:40 NULL NULL utf8mb4_0900_ai_ci NULL NULL DROP TABLE t2; ALTER FUNCTION hello comment 'abcd'; SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME='hello'; diff --git a/mysql-test/r/information_schema_cs.result b/mysql-test/r/information_schema_cs.result index e3f93dbfb4f4..d88c4737b065 100644 --- a/mysql-test/r/information_schema_cs.result +++ b/mysql-test/r/information_schema_cs.result @@ -224,8 +224,8 @@ Field Type Collation Null Key Default Extra Privileges Comment c varchar(64) utf8_bin NO NULL select,insert,update,references select * from information_schema.COLUMNS where table_name="t1" and column_name= "a" order by table_name; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def mysqltest t1 a 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def mysqltest t1 a 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL # show columns from mysqltest.t1 where field like "%a%"; Field Type Null Key Default Extra a int YES NULL @@ -1495,7 +1495,7 @@ SELECT * FROM tables ta JOIN collations co ON ( co.collation_name = CONVERT(ta.table_catalog using utf8)) JOIN character_sets cs ON ( cs.character_set_name = CONVERT(ta.table_catalog using utf8)); -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN PAD_ATTRIBUTE CHARACTER_SET_NAME DEFAULT_COLLATE_NAME DESCRIPTION MAXLEN +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN PAD_ATTRIBUTE CHARACTER_SET_NAME DEFAULT_COLLATE_NAME DESCRIPTION MAXLEN Warnings: Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. @@ -1567,7 +1567,7 @@ AS SELECT * FROM information_schema.TABLES; SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'v1'; VIEW_DEFINITION -select `information_schema`.`TABLES`.`TABLE_CATALOG` AS `TABLE_CATALOG`,`information_schema`.`TABLES`.`TABLE_SCHEMA` AS `TABLE_SCHEMA`,`information_schema`.`TABLES`.`TABLE_NAME` AS `TABLE_NAME`,`information_schema`.`TABLES`.`TABLE_TYPE` AS `TABLE_TYPE`,`information_schema`.`TABLES`.`ENGINE` AS `ENGINE`,`information_schema`.`TABLES`.`VERSION` AS `VERSION`,`information_schema`.`TABLES`.`ROW_FORMAT` AS `ROW_FORMAT`,`information_schema`.`TABLES`.`TABLE_ROWS` AS `TABLE_ROWS`,`information_schema`.`TABLES`.`AVG_ROW_LENGTH` AS `AVG_ROW_LENGTH`,`information_schema`.`TABLES`.`DATA_LENGTH` AS `DATA_LENGTH`,`information_schema`.`TABLES`.`MAX_DATA_LENGTH` AS `MAX_DATA_LENGTH`,`information_schema`.`TABLES`.`INDEX_LENGTH` AS `INDEX_LENGTH`,`information_schema`.`TABLES`.`DATA_FREE` AS `DATA_FREE`,`information_schema`.`TABLES`.`AUTO_INCREMENT` AS `AUTO_INCREMENT`,`information_schema`.`TABLES`.`CREATE_TIME` AS `CREATE_TIME`,`information_schema`.`TABLES`.`UPDATE_TIME` AS `UPDATE_TIME`,`information_schema`.`TABLES`.`CHECK_TIME` AS `CHECK_TIME`,`information_schema`.`TABLES`.`TABLE_COLLATION` AS `TABLE_COLLATION`,`information_schema`.`TABLES`.`CHECKSUM` AS `CHECKSUM`,`information_schema`.`TABLES`.`CREATE_OPTIONS` AS `CREATE_OPTIONS`,`information_schema`.`TABLES`.`TABLE_COMMENT` AS `TABLE_COMMENT` from `information_schema`.`TABLES` +select `information_schema`.`TABLES`.`TABLE_CATALOG` AS `TABLE_CATALOG`,`information_schema`.`TABLES`.`TABLE_SCHEMA` AS `TABLE_SCHEMA`,`information_schema`.`TABLES`.`TABLE_NAME` AS `TABLE_NAME`,`information_schema`.`TABLES`.`TABLE_TYPE` AS `TABLE_TYPE`,`information_schema`.`TABLES`.`ENGINE` AS `ENGINE`,`information_schema`.`TABLES`.`VERSION` AS `VERSION`,`information_schema`.`TABLES`.`ROW_FORMAT` AS `ROW_FORMAT`,`information_schema`.`TABLES`.`TABLE_ROWS` AS `TABLE_ROWS`,`information_schema`.`TABLES`.`AVG_ROW_LENGTH` AS `AVG_ROW_LENGTH`,`information_schema`.`TABLES`.`DATA_LENGTH` AS `DATA_LENGTH`,`information_schema`.`TABLES`.`MAX_DATA_LENGTH` AS `MAX_DATA_LENGTH`,`information_schema`.`TABLES`.`INDEX_LENGTH` AS `INDEX_LENGTH`,`information_schema`.`TABLES`.`DATA_FREE` AS `DATA_FREE`,`information_schema`.`TABLES`.`AUTO_INCREMENT` AS `AUTO_INCREMENT`,`information_schema`.`TABLES`.`CREATE_TIME` AS `CREATE_TIME`,`information_schema`.`TABLES`.`UPDATE_TIME` AS `UPDATE_TIME`,`information_schema`.`TABLES`.`CHECK_TIME` AS `CHECK_TIME`,`information_schema`.`TABLES`.`TABLE_COLLATION` AS `TABLE_COLLATION`,`information_schema`.`TABLES`.`CHECKSUM` AS `CHECKSUM`,`information_schema`.`TABLES`.`CREATE_OPTIONS` AS `CREATE_OPTIONS`,`information_schema`.`TABLES`.`TABLE_COMMENT` AS `TABLE_COMMENT`,`information_schema`.`TABLES`.`TABLE_SE_PRIVATE_DATA` AS `TABLE_SE_PRIVATE_DATA` from `information_schema`.`TABLES` DROP VIEW v1; SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME ='information_schema'; @@ -1578,9 +1578,9 @@ WHERE TABLE_SCHEMA='mysql' and TABLE_NAME= 'db'; TABLE_COLLATION utf8_bin select * from information_schema.columns where table_schema = NULL; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA select * from `information_schema`.`COLUMNS` where `TABLE_NAME` = NULL; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA select * from `information_schema`.`key_column_usage` where `TABLE_SCHEMA` = NULL; CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME select * from `information_schema`.`key_column_usage` where `TABLE_NAME` = NULL; @@ -1600,11 +1600,11 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_ select * from `information_schema`.`STATISTICS` where `TABLE_NAME` = NULL; TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT IS_VISIBLE EXPRESSION select * from information_schema.tables where table_schema = NULL; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA select * from information_schema.tables where table_catalog = NULL; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA select * from information_schema.tables where table_name = NULL; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_SCHEMA` = NULL; CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE ENFORCED select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_NAME` = NULL; @@ -1872,7 +1872,7 @@ LEFT JOIN INFORMATION_SCHEMA.COLUMNS USING (TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME) WHERE COLUMNS.TABLE_SCHEMA = 'test' AND COLUMNS.TABLE_NAME = 't1'; -TABLE_SCHEMA TABLE_NAME COLUMN_NAME CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME TABLE_CATALOG ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID +TABLE_SCHEMA TABLE_NAME COLUMN_NAME CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME TABLE_CATALOG ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA # # A test case for Bug#56540 "Exception (crash) in sql_show.cc # during rqg_info_schema test on Windows" @@ -2291,8 +2291,8 @@ SELECT CAN_ACCESS_USER(NULL, NULL); ERROR HY000: Access to native function 'CAN_ACCESS_USER' is rejected. # Case 2: Invoking I_S native methods should be allowed through I_S queries. SELECT * FROM INFORMATION_SCHEMA.TABLES where table_name='t1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test t1 BASE TABLE InnoDB # # # # # # # # # # # # # # # # +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test t1 BASE TABLE InnoDB # # # # # # # # # # # # # # # # NULL SELECT t.table_schema, t.table_name, c.column_name FROM INFORMATION_SCHEMA.TABLES t, INFORMATION_SCHEMA.COLUMNS c @@ -2983,8 +2983,8 @@ Table Op Msg_type Msg_text test.t1 analyze status OK SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'v1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test v1 VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL # NULL NULL NULL NULL NULL VIEW +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test v1 VIEW NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL # NULL NULL NULL NULL NULL VIEW NULL SET OPTIMIZER_SWITCH=default; DROP VIEW v1; DROP TABLE t1; diff --git a/mysql-test/r/information_schema_parameters.result b/mysql-test/r/information_schema_parameters.result index abe8a19725c1..817b9636b7e7 100644 --- a/mysql-test/r/information_schema_parameters.result +++ b/mysql-test/r/information_schema_parameters.result @@ -29,6 +29,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -51,6 +52,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -73,6 +75,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -95,6 +98,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -117,6 +121,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -139,6 +144,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -161,6 +167,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -183,6 +190,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -205,6 +213,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -227,6 +236,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -249,6 +259,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -271,6 +282,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -293,6 +305,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -315,6 +328,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -337,6 +351,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME PARAMETERS @@ -359,6 +374,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL DESCRIBE INFORMATION_SCHEMA.PARAMETERS; Field Type Null Key Default Extra SPECIFIC_CATALOG varchar(64) NO NULL diff --git a/mysql-test/r/information_schema_routines.result b/mysql-test/r/information_schema_routines.result index cfb5f037a0b3..c42a408aa753 100644 --- a/mysql-test/r/information_schema_routines.result +++ b/mysql-test/r/information_schema_routines.result @@ -29,6 +29,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -51,6 +52,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -73,6 +75,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -95,6 +98,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -117,6 +121,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -139,6 +144,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -161,6 +167,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -183,6 +190,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -205,6 +213,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -227,6 +236,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -249,6 +259,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -271,6 +282,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -293,6 +305,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -315,6 +328,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -337,6 +351,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -359,6 +374,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -381,6 +397,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -403,6 +420,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -425,6 +443,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -447,6 +466,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -469,6 +489,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -491,6 +512,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -513,6 +535,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -535,6 +558,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -557,6 +581,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -579,6 +604,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -601,6 +627,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -623,6 +650,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -645,6 +673,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -667,6 +696,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL TABLE_CATALOG def TABLE_SCHEMA information_schema TABLE_NAME ROUTINES @@ -689,6 +719,7 @@ PRIVILEGES select COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA NULL DESCRIBE INFORMATION_SCHEMA.ROUTINES; Field Type Null Key Default Extra SPECIFIC_NAME varchar(64) NO NULL diff --git a/mysql-test/r/merge_myisam.result b/mysql-test/r/merge_myisam.result index b9bb6a06e413..7a0a2626acee 100644 --- a/mysql-test/r/merge_myisam.result +++ b/mysql-test/r/merge_myisam.result @@ -2076,8 +2076,8 @@ SET SESSION information_schema_stats_expiry=0; CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=FIRST; SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='tm1'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT -def test tm1 BASE TABLE MRG_MYISAM 10 Fixed # # # # # # # # # # utf8mb4_0900_ai_ci # # Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA +def test tm1 BASE TABLE MRG_MYISAM 10 Fixed # # # # # # # # # # utf8mb4_0900_ai_ci # # Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist NULL Warnings: Warning 1168 Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist DROP TABLE tm1; diff --git a/mysql-test/r/type_temporal_fractional.result b/mysql-test/r/type_temporal_fractional.result index f69b01877ef1..caeae93b14f4 100644 --- a/mysql-test/r/type_temporal_fractional.result +++ b/mysql-test/r/type_temporal_fractional.result @@ -5466,6 +5466,7 @@ PRIVILEGES # COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA # DROP TABLE t1; # # SELECT from a subquery @@ -10405,6 +10406,7 @@ PRIVILEGES # COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA # DROP TABLE t1; # # SELECT from a subquery @@ -14784,6 +14786,7 @@ PRIVILEGES # COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID NULL +COLUMN_SE_PRIVATE_DATA # DROP TABLE t1; # # SELECT from a subquery diff --git a/mysql-test/suite/information_schema/r/i_s_schema_definition_debug.result b/mysql-test/suite/information_schema/r/i_s_schema_definition_debug.result index a1b64b9a2e67..8c8a8fee8311 100644 --- a/mysql-test/suite/information_schema/r/i_s_schema_definition_debug.result +++ b/mysql-test/suite/information_schema/r/i_s_schema_definition_debug.result @@ -118,7 +118,7 @@ include/assert.inc [All expected I_S system views are present.] # I_S system views. ######################################################################## # Print the actual I_S version stored on disk. -Current I_S_VERSION=80023003 +Current I_S_VERSION=80023004 Current I_S_VERSION_MAJOR=80023 CREATE TABLE I_S_check_table (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, t TEXT NOT NULL, @@ -224,7 +224,8 @@ CREATE OR REPLACE DEFINER=`mysql.infoschema`@`localhost` VIEW information_schema GET_DD_COLUMN_PRIVILEGES(sch.name, tbl.name, col.name) AS PRIVILEGES, IFNULL(col.comment, '') AS COLUMN_COMMENT, IFNULL(col.generation_expression_utf8, '') AS GENERATION_EXPRESSION, - col.srs_id AS SRS_ID FROM + col.srs_id AS SRS_ID, + col.se_private_data AS COLUMN_SE_PRIVATE_DATA FROM mysql.columns col JOIN mysql.tables tbl ON col.table_id=tbl.id JOIN mysql.schemata sch ON tbl.schema_id=sch.id @@ -257,7 +258,8 @@ INSERT INTO I_S_check_table(t) VALUES ("CREATE OR REPLACE DEFINER=`mysql.infosch GET_DD_COLUMN_PRIVILEGES(sch.name, tbl.name, col.name) AS PRIVILEGES, IFNULL(col.comment, '') AS COLUMN_COMMENT, IFNULL(col.generation_expression_utf8, '') AS GENERATION_EXPRESSION, - col.srs_id AS SRS_ID FROM + col.srs_id AS SRS_ID, + col.se_private_data AS COLUMN_SE_PRIVATE_DATA FROM mysql.columns col JOIN mysql.tables tbl ON col.table_id=tbl.id JOIN mysql.schemata sch ON tbl.schema_id=sch.id @@ -1221,7 +1223,8 @@ CREATE OR REPLACE DEFINER=`mysql.infoschema`@`localhost` VIEW information_schema col.name AS TABLE_COLLATION, IF (tbl.type = 'VIEW', NULL,INTERNAL_CHECKSUM(sch.name, tbl.name, IF(ISNULL(tbl.partition_type), tbl.engine, ''), tbl.se_private_id, tbl.hidden != 'Visible', ts.se_private_data, COALESCE(stat.checksum, 0), COALESCE(CAST(stat.cached_time as UNSIGNED), 0))) AS CHECKSUM, IF (tbl.type = 'VIEW', NULL, GET_DD_CREATE_OPTIONS(tbl.options, IF(IFNULL(tbl.partition_expression, 'NOT_PART_TBL')='NOT_PART_TBL', 0, 1), IF(sch.default_encryption='YES',1,0))) AS CREATE_OPTIONS, - INTERNAL_GET_COMMENT_OR_ERROR(sch.name, tbl.name, tbl.type, tbl.options, tbl.comment) AS TABLE_COMMENT FROM + INTERNAL_GET_COMMENT_OR_ERROR(sch.name, tbl.name, tbl.type, tbl.options, tbl.comment) AS TABLE_COMMENT, + tbl.se_private_data AS TABLE_SE_PRIVATE_DATA FROM mysql.tables tbl JOIN mysql.schemata sch ON tbl.schema_id=sch.id JOIN mysql.catalogs cat ON cat.id=sch.catalog_id @@ -1252,7 +1255,8 @@ INSERT INTO I_S_check_table(t) VALUES ("CREATE OR REPLACE DEFINER=`mysql.infosch col.name AS TABLE_COLLATION, IF (tbl.type = 'VIEW', NULL,INTERNAL_CHECKSUM(sch.name, tbl.name, IF(ISNULL(tbl.partition_type), tbl.engine, ''), tbl.se_private_id, tbl.hidden != 'Visible', ts.se_private_data, COALESCE(stat.checksum, 0), COALESCE(CAST(stat.cached_time as UNSIGNED), 0))) AS CHECKSUM, IF (tbl.type = 'VIEW', NULL, GET_DD_CREATE_OPTIONS(tbl.options, IF(IFNULL(tbl.partition_expression, 'NOT_PART_TBL')='NOT_PART_TBL', 0, 1), IF(sch.default_encryption='YES',1,0))) AS CREATE_OPTIONS, - INTERNAL_GET_COMMENT_OR_ERROR(sch.name, tbl.name, tbl.type, tbl.options, tbl.comment) AS TABLE_COMMENT FROM + INTERNAL_GET_COMMENT_OR_ERROR(sch.name, tbl.name, tbl.type, tbl.options, tbl.comment) AS TABLE_COMMENT, + tbl.se_private_data AS TABLE_SE_PRIVATE_DATA FROM mysql.tables tbl JOIN mysql.schemata sch ON tbl.schema_id=sch.id JOIN mysql.catalogs cat ON cat.id=sch.catalog_id @@ -1652,8 +1656,8 @@ SET debug = '-d,fetch_system_view_definition'; include/assert.inc [Found expected number of system views in DD.] include/assert.inc [Found expected number of system views in I_S_check_table.] include/assert.inc [The group concat max length is sufficient.] -The schema checksum corresponds to I_S version 80023003. +The schema checksum corresponds to I_S version 80023004. include/assert.inc [The schema checksum corresponds to a known I_S version.] include/assert.inc [The schema checksum corresponds to -IS_VERSION 80023003 stored on on disk.] +IS_VERSION 80023004 stored on on disk.] include/assert.inc [The stored I_S version is the latest published I_S version.] diff --git a/mysql-test/suite/information_schema/r/information_schema_db.result b/mysql-test/suite/information_schema/r/information_schema_db.result index 0906ec3850a6..b9e0f2831d10 100644 --- a/mysql-test/suite/information_schema/r/information_schema_db.result +++ b/mysql-test/suite/information_schema/r/information_schema_db.result @@ -338,16 +338,16 @@ TABLE_NAME TABLE_NAME TABLE_NAME TABLE_NAME # SELECT INFORMATION_SCHEMA.TABLES.* FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='non_existing_table'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA SELECT information_schema.TABLES.* FROM information_schema.TABLES WHERE TABLE_NAME='non_existing_table'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA SELECT INFORMATION_SCHEMA.TABLES.* FROM information_schema.TABLES WHERE TABLE_NAME='non_existing_table'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA SELECT INFORMATION_schema.TABLES.* FROM information_SCHEMA.TABLES WHERE TABLE_NAME='non_existing_table'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA # # Case 3: INFORMATION_SCHEMA name in WHERE clause with mixed case. # diff --git a/mysql-test/suite/information_schema/t/i_s_schema_definition_debug.test b/mysql-test/suite/information_schema/t/i_s_schema_definition_debug.test index b5003ec460ad..e0ac58a9e523 100644 --- a/mysql-test/suite/information_schema/t/i_s_schema_definition_debug.test +++ b/mysql-test/suite/information_schema/t/i_s_schema_definition_debug.test @@ -313,6 +313,12 @@ INSERT INTO I_S_published_schema INSERT INTO I_S_published_schema VALUES ('80023', '80023003', 1, 'ffae2f69bef6c2fce940a4cabb21f01889785bc66383bf459e840baca0e6854f'); +INSERT INTO I_S_published_schema + VALUES ('80023', '80023004', 0, + 'e971e478bbc174b8349d8d441d72a805bf69c8dafc2f59949bcd25bea2ad96be'); +INSERT INTO I_S_published_schema + VALUES ('80023', '80023004', 1, + '8ab2d9882a21ba0893571303561e82e27e0c7403a658f178df126885798a9007'); LET $checksum_version = `SELECT IF(ISNULL(mysqld_version), "0", i_s_version) FROM I_S_published_schema i RIGHT OUTER JOIN whole_schema w diff --git a/mysql-test/suite/perfschema/r/ddl_events_stages_current.result b/mysql-test/suite/perfschema/r/ddl_events_stages_current.result index f4521b3cc9e4..0c6708740b09 100644 --- a/mysql-test/suite/perfschema/r/ddl_events_stages_current.result +++ b/mysql-test/suite/perfschema/r/ddl_events_stages_current.result @@ -5,9 +5,9 @@ ALTER TABLE performance_schema.events_stages_current ADD INDEX test_index(EVENT_ ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_current(EVENT_ID); ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def performance_schema events_stages_current WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def performance_schema events_stages_current WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL DROP INDEX `PRIMARY` ON performance_schema.events_stages_current; ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_stages_history.result b/mysql-test/suite/perfschema/r/ddl_events_stages_history.result index 352b5a76d0e6..c08be715b1a3 100644 --- a/mysql-test/suite/perfschema/r/ddl_events_stages_history.result +++ b/mysql-test/suite/perfschema/r/ddl_events_stages_history.result @@ -5,9 +5,9 @@ ALTER TABLE performance_schema.events_stages_history ADD INDEX test_index(EVENT_ ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_history(EVENT_ID); ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def performance_schema events_stages_history WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def performance_schema events_stages_history WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL DROP INDEX `PRIMARY` ON performance_schema.events_stages_history; ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result b/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result index 3305997649d5..e1e96c856b70 100644 --- a/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result +++ b/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result @@ -5,6 +5,6 @@ ALTER TABLE performance_schema.events_stages_history_long ADD INDEX test_index(E ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_history_long(EVENT_ID); ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def performance_schema events_stages_history_long WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def performance_schema events_stages_history_long WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL diff --git a/mysql-test/suite/perfschema/r/esms_by_all.result b/mysql-test/suite/perfschema/r/esms_by_all.result index 378a31e5494c..c49e5b9a96c6 100644 --- a/mysql-test/suite/perfschema/r/esms_by_all.result +++ b/mysql-test/suite/perfschema/r/esms_by_all.result @@ -252,7 +252,8 @@ CHECK_TIME datetime TABLE_COLLATION varchar(64) , CHECKSUM bigint , CREATE_OPTIONS varchar(256) , -TABLE_COMMENT text ); +TABLE_COMMENT text , +TABLE_SE_PRIVATE_DATA text); insert into tables select * from information_schema.tables; insert into tables select * from tables; insert into tables select * from tables; diff --git a/mysql-test/suite/perfschema/r/table_component_lifecycle.result b/mysql-test/suite/perfschema/r/table_component_lifecycle.result index 3286a205cca4..ca2d5b6a5833 100644 --- a/mysql-test/suite/perfschema/r/table_component_lifecycle.result +++ b/mysql-test/suite/perfschema/r/table_component_lifecycle.result @@ -3,7 +3,7 @@ ################# select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_continent; ERROR 42S02: Table 'performance_schema.pfs_example_continent' doesn't exist show create table performance_schema.pfs_example_continent; @@ -40,7 +40,7 @@ bar2 UNINSTALL COMPONENT "file://component_pfs_example_component_population"; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_continent; ERROR 42S02: Table 'performance_schema.pfs_example_continent' doesn't exist show create table performance_schema.pfs_example_continent; @@ -53,7 +53,7 @@ ERROR 42S02: Table 'performance_schema.pfs_example_continent' doesn't exist # restart select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_continent; ERROR 42S02: Table 'performance_schema.pfs_example_continent' doesn't exist show create table performance_schema.pfs_example_continent; @@ -114,7 +114,7 @@ bar2 UNINSTALL COMPONENT "file://component_pfs_example_component_population"; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_continent; ERROR 42S02: Table 'performance_schema.pfs_example_continent' doesn't exist show create table performance_schema.pfs_example_continent; diff --git a/mysql-test/suite/perfschema/r/table_plugin_in_use.result b/mysql-test/suite/perfschema/r/table_plugin_in_use.result index 88575d05f595..9dbc8d27b665 100644 --- a/mysql-test/suite/perfschema/r/table_plugin_in_use.result +++ b/mysql-test/suite/perfschema/r/table_plugin_in_use.result @@ -7,7 +7,7 @@ set ENABLED = "YES", TIMED = "YES" FLUSH TABLES; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -119,7 +119,7 @@ where name like 'pfs_example_%'; name select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -276,7 +276,7 @@ EMPLOYEE_NUMBER FIRST_NAME LAST_NAME UNINSTALL PLUGIN pfs_example_plugin_employee; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; diff --git a/mysql-test/suite/perfschema/r/table_plugin_lifecycle.result b/mysql-test/suite/perfschema/r/table_plugin_lifecycle.result index 01d5a20fc225..50468fcca68d 100644 --- a/mysql-test/suite/perfschema/r/table_plugin_lifecycle.result +++ b/mysql-test/suite/perfschema/r/table_plugin_lifecycle.result @@ -3,7 +3,7 @@ ################# select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -48,7 +48,7 @@ EMPLOYEE_NUMBER FIRST_NAME LAST_NAME UNINSTALL PLUGIN pfs_example_plugin_employee; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -69,7 +69,7 @@ ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'pfs_exa # restart select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -146,7 +146,7 @@ EMPLOYEE_NUMBER FIRST_NAME LAST_NAME UNINSTALL PLUGIN pfs_example_plugin_employee; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; diff --git a/mysql-test/suite/perfschema/r/table_schema.result b/mysql-test/suite/perfschema/r/table_schema.result index d932a41dde3f..f1e65348a3a5 100644 --- a/mysql-test/suite/perfschema/r/table_schema.result +++ b/mysql-test/suite/perfschema/r/table_schema.result @@ -1,1665 +1,1665 @@ select * from information_schema.columns where table_schema="performance_schema" order by table_name collate utf8_general_ci, ordinal_position; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID -def performance_schema accounts USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema accounts HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema accounts CURRENT_CONNECTIONS 3 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema accounts TOTAL_CONNECTIONS 4 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema binary_log_transaction_compression_stats LOG_TYPE 1 NULL NO enum 6 24 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('BINARY','RELAY') select,insert,update,references The log type to which the transactions were written. NULL -def performance_schema binary_log_transaction_compression_stats COMPRESSION_TYPE 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references The transaction compression algorithm used. NULL -def performance_schema binary_log_transaction_compression_stats TRANSACTION_COUNTER 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references Number of transactions written to the log NULL -def performance_schema binary_log_transaction_compression_stats COMPRESSED_BYTES_COUNTER 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references The total number of bytes compressed. NULL -def performance_schema binary_log_transaction_compression_stats UNCOMPRESSED_BYTES_COUNTER 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references The total number of bytes uncompressed. NULL -def performance_schema binary_log_transaction_compression_stats COMPRESSION_PERCENTAGE 6 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint select,insert,update,references The compression ratio as a percentage. NULL -def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_ID 7 NULL YES text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references The first transaction written. NULL -def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_COMPRESSED_BYTES 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references First transaction written compressed bytes. NULL -def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_UNCOMPRESSED_BYTES 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references First transaction written uncompressed bytes. NULL -def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_TIMESTAMP 10 NULL YES timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references When the first transaction was written. NULL -def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_ID 11 NULL YES text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references The last transaction written. NULL -def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_COMPRESSED_BYTES 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references Last transaction written compressed bytes. NULL -def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_UNCOMPRESSED_BYTES 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references Last transaction written uncompressed bytes. NULL -def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_TIMESTAMP 14 NULL YES timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references When the last transaction was written. NULL -def performance_schema client_attributes CLIENT_ID 1 NULL YES varchar 65 260 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(65) UNI select,insert,update,references NULL -def performance_schema client_attributes CLIENT_ATTRIBUTES 2 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema column_statistics SQL_ID 1 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema column_statistics TABLE_SCHEMA 2 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema column_statistics TABLE_NAME 3 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema column_statistics TABLE_INSTANCE 4 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema column_statistics COLUMN_NAME 5 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema column_statistics SQL_OPERATION 6 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema column_statistics OPERATOR_TYPE 7 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema cond_instances NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema cond_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema data_locks ENGINE 1 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) PRI select,insert,update,references NULL -def performance_schema data_locks ENGINE_LOCK_ID 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema data_locks ENGINE_TRANSACTION_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema data_locks THREAD_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema data_locks EVENT_ID 5 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema data_locks OBJECT_SCHEMA 6 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema data_locks OBJECT_NAME 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema data_locks PARTITION_NAME 8 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema data_locks SUBPARTITION_NAME 9 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema data_locks INDEX_NAME 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema data_locks OBJECT_INSTANCE_BEGIN 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema data_locks LOCK_TYPE 12 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema data_locks LOCK_MODE 13 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema data_locks LOCK_STATUS 14 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema data_locks LOCK_DATA 15 NULL YES varchar 8192 32768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(8192) select,insert,update,references NULL -def performance_schema data_lock_waits ENGINE 1 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema data_lock_waits REQUESTING_ENGINE_LOCK_ID 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema data_lock_waits REQUESTING_ENGINE_TRANSACTION_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema data_lock_waits REQUESTING_THREAD_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema data_lock_waits REQUESTING_EVENT_ID 5 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema data_lock_waits REQUESTING_OBJECT_INSTANCE_BEGIN 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema data_lock_waits BLOCKING_ENGINE_LOCK_ID 7 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema data_lock_waits BLOCKING_ENGINE_TRANSACTION_ID 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema data_lock_waits BLOCKING_THREAD_ID 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema data_lock_waits BLOCKING_EVENT_ID 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema data_lock_waits BLOCKING_OBJECT_INSTANCE_BEGIN 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema error_log LOGGED 1 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) PRI select,insert,update,references NULL -def performance_schema error_log THREAD_ID 2 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema error_log PRIO 3 NULL NO enum 7 28 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('System','Error','Warning','Note') MUL select,insert,update,references NULL -def performance_schema error_log ERROR_CODE 4 NULL YES varchar 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(10) MUL select,insert,update,references NULL -def performance_schema error_log SUBSYSTEM 5 NULL YES varchar 7 28 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(7) MUL select,insert,update,references NULL -def performance_schema error_log DATA 6 NULL NO text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error ERROR_NUMBER 3 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error ERROR_NAME 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error SQL_STATE 5 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error SUM_ERROR_RAISED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error SUM_ERROR_HANDLED 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error FIRST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_account_by_error LAST_SEEN 9 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error ERROR_NUMBER 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error ERROR_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error SQL_STATE 4 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error SUM_ERROR_RAISED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error SUM_ERROR_HANDLED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error FIRST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_host_by_error LAST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error ERROR_NUMBER 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error ERROR_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error SQL_STATE 4 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error SUM_ERROR_RAISED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error SUM_ERROR_HANDLED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error FIRST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_thread_by_error LAST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error ERROR_NUMBER 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error ERROR_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error SQL_STATE 4 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error SUM_ERROR_RAISED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error SUM_ERROR_HANDLED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error FIRST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_by_user_by_error LAST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error ERROR_NUMBER 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int UNI select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error ERROR_NAME 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error SQL_STATE 3 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error SUM_ERROR_RAISED 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error SUM_ERROR_HANDLED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error FIRST_SEEN 6 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_errors_summary_global_by_error LAST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema events_stages_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_stages_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_stages_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_stages_current SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_stages_current TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current NESTING_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_current NESTING_EVENT_TYPE 12 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_stages_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_stages_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_stages_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_stages_history SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_stages_history TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history NESTING_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history NESTING_EVENT_TYPE 12 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_stages_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_stages_history_long SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_stages_history_long TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long NESTING_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_history_long NESTING_EVENT_TYPE 12 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_stages_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_stages_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_statements_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_statements_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_current SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_current TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SQL_TEXT 10 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_current DIGEST 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_current DIGEST_TEXT 12 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_current CURRENT_SCHEMA 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_current OBJECT_TYPE 14 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_current OBJECT_SCHEMA 15 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_current OBJECT_NAME 16 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_current OBJECT_INSTANCE_BEGIN 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current MYSQL_ERRNO 18 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_statements_current RETURNED_SQLSTATE 19 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_statements_current MESSAGE_TEXT 20 NULL YES varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_current ERRORS 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current WARNINGS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current ROWS_AFFECTED 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current ROWS_SENT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current ROWS_EXAMINED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current CREATED_TMP_DISK_TABLES 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current CREATED_TMP_TABLES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SELECT_FULL_JOIN 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SELECT_FULL_RANGE_JOIN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SELECT_RANGE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SELECT_RANGE_CHECK 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SELECT_SCAN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SORT_MERGE_PASSES 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SORT_RANGE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SORT_ROWS 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SORT_SCAN 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current NO_INDEX_USED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current NO_GOOD_INDEX_USED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current NESTING_EVENT_ID 39 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current NESTING_EVENT_TYPE 40 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_statements_current NESTING_EVENT_LEVEL 41 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_statements_current STATEMENT_ID 42 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current CPU_TIME 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current TMP_TABLE_BYTES_WRITTEN 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current FILESORT_BYTES_WRITTEN 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current INDEX_DIVE_COUNT 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current INDEX_DIVE_CPU 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current COMPILATION_CPU 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current ELAPSED_TIME 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current SKIPPED_COUNT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current FILESORT_DISK_USAGE 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_current TMP_TABLE_DISK_USAGE 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest SCHEMA_NAME 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest DIGEST 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest BUCKET_NUMBER 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest BUCKET_TIMER_LOW 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest BUCKET_TIMER_HIGH 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest COUNT_BUCKET 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest COUNT_BUCKET_AND_LOWER 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_by_digest BUCKET_QUANTILE 8 NULL NO double NULL NULL 7 6 NULL NULL NULL double(7,6) select,insert,update,references NULL -def performance_schema events_statements_histogram_global BUCKET_NUMBER 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned PRI select,insert,update,references NULL -def performance_schema events_statements_histogram_global BUCKET_TIMER_LOW 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_global BUCKET_TIMER_HIGH 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_global COUNT_BUCKET 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_global COUNT_BUCKET_AND_LOWER 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_histogram_global BUCKET_QUANTILE 6 NULL NO double NULL NULL 7 6 NULL NULL NULL double(7,6) select,insert,update,references NULL -def performance_schema events_statements_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_statements_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_statements_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_history SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SQL_TEXT 10 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_history DIGEST 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history DIGEST_TEXT 12 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_history CURRENT_SCHEMA 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history OBJECT_TYPE 14 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history OBJECT_SCHEMA 15 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history OBJECT_NAME 16 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history OBJECT_INSTANCE_BEGIN 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history MYSQL_ERRNO 18 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_statements_history RETURNED_SQLSTATE 19 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_statements_history MESSAGE_TEXT 20 NULL YES varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_history ERRORS 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history WARNINGS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history ROWS_AFFECTED 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history ROWS_SENT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history ROWS_EXAMINED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history CREATED_TMP_DISK_TABLES 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history CREATED_TMP_TABLES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SELECT_FULL_JOIN 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SELECT_FULL_RANGE_JOIN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SELECT_RANGE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SELECT_RANGE_CHECK 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SELECT_SCAN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SORT_MERGE_PASSES 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SORT_RANGE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SORT_ROWS 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SORT_SCAN 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history NO_INDEX_USED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history NO_GOOD_INDEX_USED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history NESTING_EVENT_ID 39 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history NESTING_EVENT_TYPE 40 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_statements_history NESTING_EVENT_LEVEL 41 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_statements_history STATEMENT_ID 42 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history CPU_TIME 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history TMP_TABLE_BYTES_WRITTEN 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history FILESORT_BYTES_WRITTEN 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history INDEX_DIVE_COUNT 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history INDEX_DIVE_CPU 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history COMPILATION_CPU 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history ELAPSED_TIME 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history SKIPPED_COUNT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history FILESORT_DISK_USAGE 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history TMP_TABLE_DISK_USAGE 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_history_long SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history_long TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SQL_TEXT 10 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_history_long DIGEST 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history_long DIGEST_TEXT 12 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_history_long CURRENT_SCHEMA 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history_long OBJECT_TYPE 14 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history_long OBJECT_SCHEMA 15 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history_long OBJECT_NAME 16 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_history_long OBJECT_INSTANCE_BEGIN 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long MYSQL_ERRNO 18 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_statements_history_long RETURNED_SQLSTATE 19 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL -def performance_schema events_statements_history_long MESSAGE_TEXT 20 NULL YES varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_history_long ERRORS 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long WARNINGS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long ROWS_AFFECTED 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long ROWS_SENT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long ROWS_EXAMINED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long CREATED_TMP_DISK_TABLES 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long CREATED_TMP_TABLES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SELECT_FULL_JOIN 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SELECT_FULL_RANGE_JOIN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SELECT_RANGE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SELECT_RANGE_CHECK 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SELECT_SCAN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SORT_MERGE_PASSES 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SORT_RANGE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SORT_ROWS 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SORT_SCAN 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long NO_INDEX_USED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long NO_GOOD_INDEX_USED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long NESTING_EVENT_ID 39 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long NESTING_EVENT_TYPE 40 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_statements_history_long NESTING_EVENT_LEVEL 41 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_statements_history_long STATEMENT_ID 42 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long CPU_TIME 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long TMP_TABLE_BYTES_WRITTEN 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long FILESORT_BYTES_WRITTEN 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long INDEX_DIVE_COUNT 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long INDEX_DIVE_CPU 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long COMPILATION_CPU 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long ELAPSED_TIME 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long SKIPPED_COUNT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long FILESORT_DISK_USAGE 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_history_long TMP_TABLE_DISK_USAGE 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ERRORS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_WARNINGS 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_AFFECTED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_SENT 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_EXAMINED 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_CREATED_TMP_DISK_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_CREATED_TMP_TABLES 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_FULL_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_FULL_RANGE_JOIN 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_RANGE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_RANGE_CHECK 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_SCAN 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_MERGE_PASSES 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_RANGE 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_ROWS 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_SCAN 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_NO_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_NO_GOOD_INDEX_USED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_DELETED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_INSERTED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_UPDATED 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_CPU_TIME 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_FILESORT_BYTES_WRITTEN 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_INDEX_DIVE_COUNT 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_INDEX_DIVE_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_COMPILATION_CPU 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_ELAPSED_TIME 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_SKIPPED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_FILESORT_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_account_by_event_name SUM_TMP_TABLE_DISK_USAGE 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SCHEMA_NAME 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema events_statements_summary_by_all DIGEST 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all USER 3 NULL YES varchar 80 320 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(80) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all CLIENT_ID 4 NULL YES varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all PLAN_ID 5 NULL YES varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all COUNT_STAR 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all MIN_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all AVG_TIMER_WAIT 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all MAX_TIMER_WAIT 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_LOCK_TIME 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ERRORS 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_WARNINGS 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ROWS_AFFECTED 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ROWS_SENT 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ROWS_EXAMINED 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_CREATED_TMP_DISK_TABLES 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_CREATED_TMP_TABLES 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SELECT_FULL_JOIN 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SELECT_FULL_RANGE_JOIN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SELECT_RANGE 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SELECT_RANGE_CHECK 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SELECT_SCAN 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SORT_MERGE_PASSES 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SORT_RANGE 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SORT_ROWS 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SORT_SCAN 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_NO_INDEX_USED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_NO_GOOD_INDEX_USED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ROWS_DELETED 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ROWS_INSERTED 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ROWS_UPDATED 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_CPU_TIME 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_TMP_TABLE_BYTES_WRITTEN 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_FILESORT_BYTES_WRITTEN 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_INDEX_DIVE_COUNT 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_INDEX_DIVE_CPU 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_COMPILATION_CPU 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_ELAPSED_TIME 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_SKIPPED 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_FILESORT_DISK_USAGE 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all SUM_TMP_TABLE_DISK_USAGE 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all FIRST_SEEN 43 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all LAST_SEEN 44 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all QUANTILE_95 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all QUANTILE_99 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all QUANTILE_999 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_all QUERY_SAMPLE_TEXT 48 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_summary_by_all QUERY_SAMPLE_SEEN 49 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema events_statements_summary_by_all QUERY_SAMPLE_TIMER_WAIT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SCHEMA_NAME 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest DIGEST 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest DIGEST_TEXT 3 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ERRORS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_WARNINGS 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ROWS_AFFECTED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ROWS_SENT 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ROWS_EXAMINED 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_CREATED_TMP_DISK_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_CREATED_TMP_TABLES 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SELECT_FULL_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SELECT_FULL_RANGE_JOIN 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SELECT_RANGE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SELECT_RANGE_CHECK 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SELECT_SCAN 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SORT_MERGE_PASSES 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SORT_RANGE 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SORT_ROWS 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SORT_SCAN 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_NO_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_NO_GOOD_INDEX_USED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ROWS_DELETED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ROWS_INSERTED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ROWS_UPDATED 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_CPU_TIME 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_TMP_TABLE_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_FILESORT_BYTES_WRITTEN 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_INDEX_DIVE_COUNT 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_INDEX_DIVE_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_COMPILATION_CPU 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_ELAPSED_TIME 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_SKIPPED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_FILESORT_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest SUM_TMP_TABLE_DISK_USAGE 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest FIRST_SEEN 41 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest LAST_SEEN 42 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest QUANTILE_95 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest QUANTILE_99 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest QUANTILE_999 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest QUERY_SAMPLE_TEXT 46 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest QUERY_SAMPLE_SEEN 47 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema events_statements_summary_by_digest QUERY_SAMPLE_TIMER_WAIT 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_LOCK_TIME 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ERRORS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_WARNINGS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_AFFECTED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_SENT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_EXAMINED 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_CREATED_TMP_DISK_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_CREATED_TMP_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_FULL_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_FULL_RANGE_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_RANGE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_RANGE_CHECK 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_SCAN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_MERGE_PASSES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_RANGE 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_ROWS 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_SCAN 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_NO_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_NO_GOOD_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_DELETED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_INSERTED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_UPDATED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_CPU_TIME 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_FILESORT_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_INDEX_DIVE_COUNT 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_INDEX_DIVE_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_COMPILATION_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_ELAPSED_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_SKIPPED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_FILESORT_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_host_by_event_name SUM_TMP_TABLE_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program OBJECT_TYPE 1 NULL NO enum 9 36 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('EVENT','FUNCTION','PROCEDURE','TABLE','TRIGGER') PRI select,insert,update,references NULL -def performance_schema events_statements_summary_by_program OBJECT_SCHEMA 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema events_statements_summary_by_program OBJECT_NAME 3 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema events_statements_summary_by_program COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program COUNT_STATEMENTS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_STATEMENTS_WAIT 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program MIN_STATEMENTS_WAIT 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program AVG_STATEMENTS_WAIT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program MAX_STATEMENTS_WAIT 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_LOCK_TIME 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ERRORS 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_WARNINGS 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ROWS_AFFECTED 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ROWS_SENT 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ROWS_EXAMINED 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_CREATED_TMP_DISK_TABLES 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_CREATED_TMP_TABLES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SELECT_FULL_JOIN 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SELECT_FULL_RANGE_JOIN 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SELECT_RANGE 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SELECT_RANGE_CHECK 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SELECT_SCAN 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SORT_MERGE_PASSES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SORT_RANGE 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SORT_ROWS 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SORT_SCAN 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_NO_INDEX_USED 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_NO_GOOD_INDEX_USED 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ROWS_DELETED 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ROWS_INSERTED 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ROWS_UPDATED 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_CPU_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_TMP_TABLE_BYTES_WRITTEN 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_FILESORT_BYTES_WRITTEN 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_INDEX_DIVE_COUNT 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_INDEX_DIVE_CPU 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_COMPILATION_CPU 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_ELAPSED_TIME 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_SKIPPED 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_FILESORT_DISK_USAGE 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_program SUM_TMP_TABLE_DISK_USAGE 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_LOCK_TIME 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ERRORS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_WARNINGS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_AFFECTED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_SENT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_EXAMINED 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_CREATED_TMP_DISK_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_CREATED_TMP_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_FULL_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_FULL_RANGE_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_RANGE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_RANGE_CHECK 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_SCAN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_MERGE_PASSES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_RANGE 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_ROWS 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_SCAN 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_NO_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_NO_GOOD_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_DELETED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_INSERTED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_UPDATED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_CPU_TIME 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_FILESORT_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_INDEX_DIVE_COUNT 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_INDEX_DIVE_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_COMPILATION_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_ELAPSED_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_SKIPPED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_FILESORT_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_thread_by_event_name SUM_TMP_TABLE_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_LOCK_TIME 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ERRORS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_WARNINGS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_AFFECTED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_SENT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_EXAMINED 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_CREATED_TMP_DISK_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_CREATED_TMP_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_FULL_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_FULL_RANGE_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_RANGE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_RANGE_CHECK 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_SCAN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_MERGE_PASSES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_RANGE 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_ROWS 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_SCAN 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_NO_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_NO_GOOD_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_DELETED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_INSERTED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_UPDATED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_CPU_TIME 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_FILESORT_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_INDEX_DIVE_COUNT 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_INDEX_DIVE_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_COMPILATION_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_ELAPSED_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_SKIPPED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_FILESORT_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_by_user_by_event_name SUM_TMP_TABLE_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_LOCK_TIME 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ERRORS 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_WARNINGS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_AFFECTED 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_SENT 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_EXAMINED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_CREATED_TMP_DISK_TABLES 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_CREATED_TMP_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_FULL_JOIN 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_FULL_RANGE_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_RANGE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_RANGE_CHECK 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_SCAN 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SORT_MERGE_PASSES 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SORT_RANGE 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SORT_ROWS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SORT_SCAN 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_NO_INDEX_USED 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_NO_GOOD_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_DELETED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_INSERTED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_UPDATED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_CPU_TIME 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_FILESORT_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_INDEX_DIVE_COUNT 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_INDEX_DIVE_CPU 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_COMPILATION_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_ELAPSED_TIME 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_SKIPPED 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_FILESORT_DISK_USAGE 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_statements_summary_global_by_event_name SUM_TMP_TABLE_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_transactions_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_transactions_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_transactions_current STATE 5 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ACTIVE','COMMITTED','ROLLED BACK') select,insert,update,references NULL -def performance_schema events_transactions_current TRX_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current GTID 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_current XID_FORMAT_ID 8 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_transactions_current XID_GTRID 9 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL -def performance_schema events_transactions_current XID_BQUAL 10 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL -def performance_schema events_transactions_current XA_STATE 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_current SOURCE 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_current TIMER_START 13 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current TIMER_END 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current TIMER_WAIT 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current ACCESS_MODE 16 NULL YES enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('READ ONLY','READ WRITE') select,insert,update,references NULL -def performance_schema events_transactions_current ISOLATION_LEVEL 17 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_current AUTOCOMMIT 18 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema events_transactions_current NUMBER_OF_SAVEPOINTS 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current NUMBER_OF_ROLLBACK_TO_SAVEPOINT 20 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current NUMBER_OF_RELEASE_SAVEPOINT 21 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current OBJECT_INSTANCE_BEGIN 22 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current NESTING_EVENT_ID 23 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_current NESTING_EVENT_TYPE 24 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_transactions_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_transactions_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_transactions_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_transactions_history STATE 5 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ACTIVE','COMMITTED','ROLLED BACK') select,insert,update,references NULL -def performance_schema events_transactions_history TRX_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history GTID 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history XID_FORMAT_ID 8 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_transactions_history XID_GTRID 9 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL -def performance_schema events_transactions_history XID_BQUAL 10 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL -def performance_schema events_transactions_history XA_STATE 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history SOURCE 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history TIMER_START 13 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history TIMER_END 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history TIMER_WAIT 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history ACCESS_MODE 16 NULL YES enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('READ ONLY','READ WRITE') select,insert,update,references NULL -def performance_schema events_transactions_history ISOLATION_LEVEL 17 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history AUTOCOMMIT 18 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema events_transactions_history NUMBER_OF_SAVEPOINTS 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history NUMBER_OF_ROLLBACK_TO_SAVEPOINT 20 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history NUMBER_OF_RELEASE_SAVEPOINT 21 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history OBJECT_INSTANCE_BEGIN 22 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history NESTING_EVENT_ID 23 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history NESTING_EVENT_TYPE 24 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_transactions_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_transactions_history_long STATE 5 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ACTIVE','COMMITTED','ROLLED BACK') select,insert,update,references NULL -def performance_schema events_transactions_history_long TRX_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long GTID 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history_long XID_FORMAT_ID 8 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema events_transactions_history_long XID_GTRID 9 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL -def performance_schema events_transactions_history_long XID_BQUAL 10 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL -def performance_schema events_transactions_history_long XA_STATE 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history_long SOURCE 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history_long TIMER_START 13 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long TIMER_END 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long TIMER_WAIT 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long ACCESS_MODE 16 NULL YES enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('READ ONLY','READ WRITE') select,insert,update,references NULL -def performance_schema events_transactions_history_long ISOLATION_LEVEL 17 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_transactions_history_long AUTOCOMMIT 18 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema events_transactions_history_long NUMBER_OF_SAVEPOINTS 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long NUMBER_OF_ROLLBACK_TO_SAVEPOINT 20 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long NUMBER_OF_RELEASE_SAVEPOINT 21 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long OBJECT_INSTANCE_BEGIN 22 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long NESTING_EVENT_ID 23 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_history_long NESTING_EVENT_TYPE 24 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name COUNT_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name SUM_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name MIN_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name AVG_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name MAX_TIMER_READ_WRITE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name COUNT_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name SUM_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name MIN_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name AVG_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_account_by_event_name MAX_TIMER_READ_ONLY 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name COUNT_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name SUM_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name MIN_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name AVG_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name MAX_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name COUNT_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name SUM_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name MIN_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name AVG_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_host_by_event_name MAX_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name COUNT_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name SUM_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name MIN_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name AVG_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name MAX_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name COUNT_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name SUM_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name MIN_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name AVG_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_thread_by_event_name MAX_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name COUNT_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name SUM_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name MIN_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name AVG_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name MAX_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name COUNT_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name SUM_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name MIN_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name AVG_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_by_user_by_event_name MAX_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name COUNT_READ_WRITE 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name SUM_TIMER_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name MIN_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name AVG_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name MAX_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name COUNT_READ_ONLY 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name SUM_TIMER_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name MIN_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name AVG_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_transactions_summary_global_by_event_name MAX_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_waits_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_waits_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_waits_current SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_current TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current SPINS 9 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_waits_current OBJECT_SCHEMA 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_current OBJECT_NAME 11 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema events_waits_current INDEX_NAME 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_current OBJECT_TYPE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_current OBJECT_INSTANCE_BEGIN 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current NESTING_EVENT_ID 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_current NESTING_EVENT_TYPE 16 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_waits_current OPERATION 17 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema events_waits_current NUMBER_OF_BYTES 18 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema events_waits_current FLAGS 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_waits_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_waits_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_waits_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_waits_history SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history SPINS 9 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_waits_history OBJECT_SCHEMA 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history OBJECT_NAME 11 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema events_waits_history INDEX_NAME 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history OBJECT_TYPE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history OBJECT_INSTANCE_BEGIN 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history NESTING_EVENT_ID 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history NESTING_EVENT_TYPE 16 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_waits_history OPERATION 17 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema events_waits_history NUMBER_OF_BYTES 18 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema events_waits_history FLAGS 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_waits_history_long SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history_long TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long SPINS 9 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long OBJECT_SCHEMA 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history_long OBJECT_NAME 11 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema events_waits_history_long INDEX_NAME 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history_long OBJECT_TYPE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema events_waits_history_long OBJECT_INSTANCE_BEGIN 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long NESTING_EVENT_ID 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_history_long NESTING_EVENT_TYPE 16 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL -def performance_schema events_waits_history_long OPERATION 17 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema events_waits_history_long NUMBER_OF_BYTES 18 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema events_waits_history_long FLAGS 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_instance MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema events_waits_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema events_waits_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_instances FILE_NAME 1 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) PRI select,insert,update,references NULL -def performance_schema file_instances EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema file_instances OPEN_COUNT 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema file_summary_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name COUNT_READ 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name SUM_TIMER_READ 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MIN_TIMER_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name AVG_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MAX_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name SUM_NUMBER_OF_BYTES_READ 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema file_summary_by_event_name COUNT_WRITE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name SUM_TIMER_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MIN_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name AVG_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MAX_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name SUM_NUMBER_OF_BYTES_WRITE 18 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema file_summary_by_event_name COUNT_MISC 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name SUM_TIMER_MISC 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MIN_TIMER_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name AVG_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_event_name MAX_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance FILE_NAME 1 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) MUL select,insert,update,references NULL -def performance_schema file_summary_by_instance EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema file_summary_by_instance OBJECT_INSTANCE_BEGIN 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema file_summary_by_instance COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance COUNT_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance SUM_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MIN_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance AVG_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MAX_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance SUM_NUMBER_OF_BYTES_READ 14 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema file_summary_by_instance COUNT_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance SUM_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MIN_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance AVG_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MAX_TIMER_WRITE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance SUM_NUMBER_OF_BYTES_WRITE 20 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema file_summary_by_instance COUNT_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance SUM_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MIN_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance AVG_TIMER_MISC 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema file_summary_by_instance MAX_TIMER_MISC 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema global_status VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema global_status VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema global_variables VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema global_variables VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema hosts HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) UNI select,insert,update,references NULL -def performance_schema hosts CURRENT_CONNECTIONS 2 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema hosts TOTAL_CONNECTIONS 3 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache IP 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema host_cache HOST 2 NULL YES varchar 255 255 NULL NULL NULL ascii ascii_general_ci varchar(255) MUL select,insert,update,references NULL -def performance_schema host_cache HOST_VALIDATED 3 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema host_cache SUM_CONNECT_ERRORS 4 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_HOST_BLOCKED_ERRORS 5 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_NAMEINFO_TRANSIENT_ERRORS 6 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_NAMEINFO_PERMANENT_ERRORS 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_FORMAT_ERRORS 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_ADDRINFO_TRANSIENT_ERRORS 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_ADDRINFO_PERMANENT_ERRORS 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_FCRDNS_ERRORS 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_HOST_ACL_ERRORS 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_NO_AUTH_PLUGIN_ERRORS 13 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_AUTH_PLUGIN_ERRORS 14 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_HANDSHAKE_ERRORS 15 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_PROXY_USER_ERRORS 16 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_PROXY_USER_ACL_ERRORS 17 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_AUTHENTICATION_ERRORS 18 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_SSL_ERRORS 19 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_MAX_USER_CONNECTIONS_ERRORS 20 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 21 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_DEFAULT_DATABASE_ERRORS 22 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_INIT_CONNECT_ERRORS 23 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_LOCAL_ERRORS 24 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache COUNT_UNKNOWN_ERRORS 25 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema host_cache FIRST_SEEN 26 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema host_cache LAST_SEEN 27 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema host_cache FIRST_ERROR_SEEN 28 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema host_cache LAST_ERROR_SEEN 29 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema index_statistics TABLE_SCHEMA 1 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema index_statistics TABLE_NAME 2 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema index_statistics INDEX_NAME 3 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL -def performance_schema index_statistics ROWS_REQUESTED 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema keyring_keys KEY_ID 1 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(255) select,insert,update,references NULL -def performance_schema keyring_keys KEY_OWNER 2 NULL YES varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(255) select,insert,update,references NULL -def performance_schema keyring_keys BACKEND_KEY_ID 3 NULL YES varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(255) select,insert,update,references NULL -def performance_schema log_status SERVER_UUID 1 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL -def performance_schema log_status LOCAL 2 NULL NO json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references NULL -def performance_schema log_status REPLICATION 3 NULL NO json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references NULL -def performance_schema log_status STORAGE_ENGINES 4 NULL NO json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name USER 1 NULL YES char 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin char(32) MUL select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name COUNT_ALLOC 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name COUNT_FREE 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name SUM_NUMBER_OF_BYTES_FREE 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name LOW_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name CURRENT_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name HIGH_COUNT_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name LOW_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name CURRENT_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_account_by_event_name HIGH_NUMBER_OF_BYTES_USED 13 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name COUNT_ALLOC 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name COUNT_FREE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name SUM_NUMBER_OF_BYTES_FREE 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name LOW_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name CURRENT_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name HIGH_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name LOW_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name CURRENT_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_host_by_event_name HIGH_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name COUNT_ALLOC 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name COUNT_FREE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name SUM_NUMBER_OF_BYTES_FREE 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name LOW_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name CURRENT_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name HIGH_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name LOW_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name CURRENT_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_thread_by_event_name HIGH_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name USER 1 NULL YES char 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin char(32) MUL select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name COUNT_ALLOC 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name COUNT_FREE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name SUM_NUMBER_OF_BYTES_FREE 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name LOW_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name CURRENT_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name HIGH_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name LOW_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name CURRENT_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_by_user_by_event_name HIGH_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name COUNT_ALLOC 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name COUNT_FREE 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name SUM_NUMBER_OF_BYTES_FREE 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name LOW_COUNT_USED 6 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name CURRENT_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name HIGH_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name LOW_NUMBER_OF_BYTES_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name CURRENT_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema memory_summary_global_by_event_name HIGH_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema metadata_locks OBJECT_TYPE 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema metadata_locks OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema metadata_locks OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema metadata_locks COLUMN_NAME 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema metadata_locks OBJECT_INSTANCE_BEGIN 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema metadata_locks LOCK_TYPE 6 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema metadata_locks LOCK_DURATION 7 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema metadata_locks LOCK_STATUS 8 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema metadata_locks SOURCE 9 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema metadata_locks OWNER_THREAD_ID 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema metadata_locks OWNER_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema mutex_instances NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema mutex_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema mutex_instances LOCKED_BY_THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema objects_summary_global_by_type OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema objects_summary_global_by_type OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema objects_summary_global_by_type OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema objects_summary_global_by_type COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema objects_summary_global_by_type SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema objects_summary_global_by_type MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema objects_summary_global_by_type AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema objects_summary_global_by_type MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema performance_timers TIMER_NAME 1 NULL NO enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('CYCLE','NANOSECOND','MICROSECOND','MILLISECOND') select,insert,update,references NULL -def performance_schema performance_timers TIMER_FREQUENCY 2 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema performance_timers TIMER_RESOLUTION 3 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema performance_timers TIMER_OVERHEAD 4 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema persisted_variables VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema persisted_variables VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema prepared_statements_instances OBJECT_INSTANCE_BEGIN 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema prepared_statements_instances STATEMENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema prepared_statements_instances STATEMENT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema prepared_statements_instances SQL_TEXT 4 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema prepared_statements_instances OWNER_THREAD_ID 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema prepared_statements_instances OWNER_EVENT_ID 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances OWNER_OBJECT_TYPE 7 NULL YES enum 9 36 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('EVENT','FUNCTION','PROCEDURE','TABLE','TRIGGER') MUL select,insert,update,references NULL -def performance_schema prepared_statements_instances OWNER_OBJECT_SCHEMA 8 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema prepared_statements_instances OWNER_OBJECT_NAME 9 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema prepared_statements_instances TIMER_PREPARE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances COUNT_REPREPARE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances COUNT_EXECUTE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_TIMER_EXECUTE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances MIN_TIMER_EXECUTE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances AVG_TIMER_EXECUTE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances MAX_TIMER_EXECUTE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_LOCK_TIME 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ERRORS 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_WARNINGS 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ROWS_AFFECTED 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ROWS_SENT 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ROWS_EXAMINED 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_CREATED_TMP_DISK_TABLES 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_CREATED_TMP_TABLES 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SELECT_FULL_JOIN 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SELECT_FULL_RANGE_JOIN 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SELECT_RANGE 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SELECT_RANGE_CHECK 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SELECT_SCAN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SORT_MERGE_PASSES 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SORT_RANGE 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SORT_ROWS 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SORT_SCAN 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_NO_INDEX_USED 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_NO_GOOD_INDEX_USED 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ROWS_DELETED 36 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ROWS_INSERTED 37 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ROWS_UPDATED 38 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_CPU_TIME 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_TMP_TABLE_BYTES_WRITTEN 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_FILESORT_BYTES_WRITTEN 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_INDEX_DIVE_COUNT 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_INDEX_DIVE_CPU 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_COMPILATION_CPU 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_ELAPSED_TIME 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_SKIPPED 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_FILESORT_DISK_USAGE 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema prepared_statements_instances SUM_TMP_TABLE_DISK_USAGE 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema processlist ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema processlist USER 2 NULL YES varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL -def performance_schema processlist HOST 3 NULL YES varchar 255 255 NULL NULL NULL ascii ascii_general_ci varchar(255) select,insert,update,references NULL -def performance_schema processlist DB 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema processlist COMMAND 5 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema processlist TIME 6 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema processlist STATE 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema processlist INFO 8 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema replication_applier_configuration CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL -def performance_schema replication_applier_configuration DESIRED_DELAY 2 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_applier_configuration PRIVILEGE_CHECKS_USER 3 NULL YES text 65535 65535 NULL NULL NULL utf8 utf8_bin text select,insert,update,references User name for the security context of the applier. NULL -def performance_schema replication_applier_configuration REQUIRE_ROW_FORMAT 4 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references Indicates whether the channel shall only accept row based events. NULL -def performance_schema replication_applier_configuration REQUIRE_TABLE_PRIMARY_KEY_CHECK 5 NULL NO enum 6 24 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('STREAM','ON','OFF') select,insert,update,references Indicates what is the channel policy regarding tables having primary keys on create and alter table queries NULL -def performance_schema replication_applier_configuration ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE 6 NULL NO enum 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('OFF','LOCAL','UUID') select,insert,update,references Indicates whether the channel will generate a new GTID for anonymous transactions. OFF means that anonymous transactions will remain anonymous. LOCAL means that anonymous transactions will be assigned a newly generated GTID based on server_uuid. UUID indicates that anonymous transactions will be assigned a newly generated GTID based on Assign_gtids_to_anonymous_transactions_value NULL -def performance_schema replication_applier_configuration ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_VALUE 7 NULL YES text 65535 65535 NULL NULL NULL utf8 utf8_bin text select,insert,update,references Indicates the UUID used while generating GTIDs for anonymous transactions NULL -def performance_schema replication_applier_filters CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL -def performance_schema replication_applier_filters FILTER_NAME 2 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL -def performance_schema replication_applier_filters FILTER_RULE 3 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema replication_applier_filters CONFIGURED_BY 4 NULL NO enum 37 148 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('STARTUP_OPTIONS','CHANGE_REPLICATION_FILTER','STARTUP_OPTIONS_FOR_CHANNEL','CHANGE_REPLICATION_FILTER_FOR_CHANNEL') select,insert,update,references NULL -def performance_schema replication_applier_filters ACTIVE_SINCE 5 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_filters COUNTER 6 0 NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_applier_global_filters FILTER_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL -def performance_schema replication_applier_global_filters FILTER_RULE 2 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema replication_applier_global_filters CONFIGURED_BY 3 NULL NO enum 25 100 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('STARTUP_OPTIONS','CHANGE_REPLICATION_FILTER') select,insert,update,references NULL -def performance_schema replication_applier_global_filters ACTIVE_SINCE 4 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL -def performance_schema replication_applier_status SERVICE_STATE 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF') select,insert,update,references NULL -def performance_schema replication_applier_status REMAINING_DELAY 3 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema replication_applier_status COUNT_TRANSACTIONS_RETRIES 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator THREAD_ID 2 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator SERVICE_STATE 3 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF') select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_ERROR_NUMBER 4 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_ERROR_MESSAGE 5 NULL NO varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_ERROR_TIMESTAMP 6 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION 7 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 8 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 9 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_START_BUFFER_TIMESTAMP 10 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_END_BUFFER_TIMESTAMP 11 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION 12 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 13 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 14 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION_START_BUFFER_TIMESTAMP 15 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker WORKER_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker SERVICE_STATE 4 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF') select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_ERROR_NUMBER 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_ERROR_MESSAGE 6 NULL NO varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_ERROR_TIMESTAMP 7 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION 8 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 9 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 10 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_START_APPLY_TIMESTAMP 11 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_END_APPLY_TIMESTAMP 12 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION 13 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 14 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 15 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_START_APPLY_TIMESTAMP 16 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_RETRIES_COUNT 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_NUMBER 18 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE 19 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_TIMESTAMP 20 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_RETRIES_COUNT 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_NUMBER 22 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE 23 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_TIMESTAMP 24 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_asynchronous_connection_failover CHANNEL_NAME 1 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The replication channel name that connects source and replica. NULL -def performance_schema replication_asynchronous_connection_failover HOST 2 NULL NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) PRI select,insert,update,references The source hostname that the replica will attempt to switch over the replication connection to in case of a failure. NULL -def performance_schema replication_asynchronous_connection_failover PORT 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int PRI select,insert,update,references The source port that the replica will attempt to switch over the replication connection to in case of a failure. NULL -def performance_schema replication_asynchronous_connection_failover NETWORK_NAMESPACE 4 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references The source network namespace that the replica will attempt to switch over the replication connection to in case of a failure. If its value is empty, connections use the default (global) namespace. NULL -def performance_schema replication_asynchronous_connection_failover WEIGHT 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references The order in which the replica shall try to switch the connection over to when there are failures. Weight can be set to a number between 1 and 100, where 100 is the highest weight and 1 the lowest. NULL -def performance_schema replication_asynchronous_connection_failover MANAGED_NAME 6 NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The name of the group which this server belongs to. NULL -def performance_schema replication_asynchronous_connection_failover_managed CHANNEL_NAME 1 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The replication channel name that connects source and replica. NULL -def performance_schema replication_asynchronous_connection_failover_managed MANAGED_NAME 2 NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The name of the source which needs to be managed. NULL -def performance_schema replication_asynchronous_connection_failover_managed MANAGED_TYPE 3 NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references Determines the managed type. NULL -def performance_schema replication_asynchronous_connection_failover_managed CONFIGURATION 4 NULL YES json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references The data to help manage group. For Managed_type = GroupReplication, Configuration value should contain {"Primary_weight": 80, "Secondary_weight": 60}, so that it assigns weight=80 to PRIMARY of the group, and weight=60 for rest of the members in mysql.replication_asynchronous_connection_failover table. NULL -def performance_schema replication_connection_configuration CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL -def performance_schema replication_connection_configuration HOST 2 NULL NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema replication_connection_configuration PORT 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_connection_configuration USER 4 NULL NO char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) select,insert,update,references NULL -def performance_schema replication_connection_configuration NETWORK_INTERFACE 5 NULL NO char 60 240 NULL NULL NULL utf8mb4 utf8mb4_bin char(60) select,insert,update,references NULL -def performance_schema replication_connection_configuration AUTO_POSITION 6 NULL NO enum 1 4 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('1','0') select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_ALLOWED 7 NULL NO enum 7 28 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO','IGNORED') select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_CA_FILE 8 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_CA_PATH 9 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_CERTIFICATE 10 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_CIPHER 11 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_KEY 12 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_VERIFY_SERVER_CERTIFICATE 13 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_CRL_FILE 14 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(255) select,insert,update,references NULL -def performance_schema replication_connection_configuration SSL_CRL_PATH 15 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(255) select,insert,update,references NULL -def performance_schema replication_connection_configuration CONNECTION_RETRY_INTERVAL 16 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_connection_configuration CONNECTION_RETRY_COUNT 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_connection_configuration HEARTBEAT_INTERVAL 18 NULL NO double NULL NULL 10 3 NULL NULL NULL double(10,3) unsigned select,insert,update,references Number of seconds after which a heartbeat will be sent . NULL -def performance_schema replication_connection_configuration TLS_VERSION 19 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(255) select,insert,update,references NULL -def performance_schema replication_connection_configuration PUBLIC_KEY_PATH 20 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema replication_connection_configuration GET_PUBLIC_KEY 21 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema replication_connection_configuration NETWORK_NAMESPACE 22 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema replication_connection_configuration COMPRESSION_ALGORITHM 23 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references Compression algorithm used for data transfer between master and slave. NULL -def performance_schema replication_connection_configuration ZSTD_COMPRESSION_LEVEL 24 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references Compression level associated with zstd compression algorithm. NULL -def performance_schema replication_connection_configuration TLS_CIPHERSUITES 25 NULL YES text 65535 65535 NULL NULL NULL utf8 utf8_bin text select,insert,update,references NULL -def performance_schema replication_connection_configuration SOURCE_CONNECTION_AUTO_FAILOVER 26 NULL NO enum 1 4 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('1','0') select,insert,update,references NULL -def performance_schema replication_connection_status CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL -def performance_schema replication_connection_status GROUP_NAME 2 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL -def performance_schema replication_connection_status SOURCE_UUID 3 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL -def performance_schema replication_connection_status THREAD_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema replication_connection_status SERVICE_STATE 5 NULL NO enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF','CONNECTING') select,insert,update,references NULL -def performance_schema replication_connection_status COUNT_RECEIVED_HEARTBEATS 6 0 NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_connection_status LAST_HEARTBEAT_TIMESTAMP 7 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references Shows when the most recent heartbeat signal was received. NULL -def performance_schema replication_connection_status RECEIVED_TRANSACTION_SET 8 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema replication_connection_status LAST_ERROR_NUMBER 9 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_connection_status LAST_ERROR_MESSAGE 10 NULL NO varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema replication_connection_status LAST_ERROR_TIMESTAMP 11 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION 12 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL -def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 13 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 14 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_START_QUEUE_TIMESTAMP 15 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_END_QUEUE_TIMESTAMP 16 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status QUEUEING_TRANSACTION 17 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL -def performance_schema replication_connection_status QUEUEING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 18 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status QUEUEING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 19 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_connection_status QUEUEING_TRANSACTION_START_QUEUE_TIMESTAMP 20 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema replication_group_members CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL -def performance_schema replication_group_members MEMBER_ID 2 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL -def performance_schema replication_group_members MEMBER_HOST 3 NULL NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema replication_group_members MEMBER_PORT 4 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema replication_group_members MEMBER_STATE 5 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references NULL -def performance_schema replication_group_members MEMBER_ROLE 6 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references NULL -def performance_schema replication_group_members MEMBER_VERSION 7 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references NULL -def performance_schema replication_group_member_stats CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL -def performance_schema replication_group_member_stats VIEW_ID 2 NULL NO char 60 240 NULL NULL NULL utf8mb4 utf8mb4_bin char(60) select,insert,update,references NULL -def performance_schema replication_group_member_stats MEMBER_ID 3 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_IN_QUEUE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_CHECKED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_CONFLICTS_DETECTED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_ROWS_VALIDATING 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats TRANSACTIONS_COMMITTED_ALL_MEMBERS 8 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema replication_group_member_stats LAST_CONFLICT_FREE_TRANSACTION 9 NULL NO text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_REMOTE_APPLIED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_LOCAL_PROPOSED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_LOCAL_ROLLBACK 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replica_statistics SERVER_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema replica_statistics TIMESTAMP 2 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema replica_statistics MILLI_SEC_BEHIND_MASTER 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema rwlock_instances NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema rwlock_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema rwlock_instances WRITE_LOCKED_BY_THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema rwlock_instances READ_LOCKED_BY_COUNT 4 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL -def performance_schema session_account_connect_attrs PROCESSLIST_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema session_account_connect_attrs ATTR_NAME 2 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(32) PRI select,insert,update,references NULL -def performance_schema session_account_connect_attrs ATTR_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(1024) select,insert,update,references NULL -def performance_schema session_account_connect_attrs ORDINAL_POSITION 4 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema session_connect_attrs PROCESSLIST_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema session_connect_attrs ATTR_NAME 2 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(32) PRI select,insert,update,references NULL -def performance_schema session_connect_attrs ATTR_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(1024) select,insert,update,references NULL -def performance_schema session_connect_attrs ORDINAL_POSITION 4 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema session_query_attrs PROCESSLIST_ID 1 0 NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema session_query_attrs ATTR_NAME 2 NULL NO varchar 256 1024 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(256) select,insert,update,references NULL -def performance_schema session_query_attrs ATTR_VALUE 3 NULL NO varchar 256 1024 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(256) select,insert,update,references NULL -def performance_schema session_query_attrs ORDINAL_POSITION 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema session_status VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema session_status VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema session_variables VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema session_variables VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema setup_actors HOST 1 % NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) PRI select,insert,update,references NULL -def performance_schema setup_actors USER 2 % NO char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) PRI select,insert,update,references NULL -def performance_schema setup_actors ROLE 3 % NO char 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin char(32) PRI select,insert,update,references NULL -def performance_schema setup_actors ENABLED 4 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_actors HISTORY 5 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_consumers NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema setup_consumers ENABLED 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_instruments NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema setup_instruments ENABLED 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_instruments TIMED 3 NULL YES enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_instruments PROPERTIES 4 NULL NO set 49 196 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci set('singleton','progress','user','global_statistics','mutable') select,insert,update,references NULL -def performance_schema setup_instruments VOLATILITY 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema setup_instruments DOCUMENTATION 6 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema setup_objects OBJECT_TYPE 1 TABLE NO enum 9 36 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('EVENT','FUNCTION','PROCEDURE','TABLE','TRIGGER') MUL select,insert,update,references NULL -def performance_schema setup_objects OBJECT_SCHEMA 2 % YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema setup_objects OBJECT_NAME 3 % NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema setup_objects ENABLED 4 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_objects TIMED 5 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_threads NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema setup_threads ENABLED 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_threads HISTORY 3 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema setup_threads PROPERTIES 4 NULL NO set 14 56 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci set('singleton','user') select,insert,update,references NULL -def performance_schema setup_threads VOLATILITY 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema setup_threads DOCUMENTATION 6 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema socket_instances EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema socket_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema socket_instances THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema socket_instances SOCKET_ID 4 NULL NO int NULL NULL 10 0 NULL NULL NULL int MUL select,insert,update,references NULL -def performance_schema socket_instances IP 5 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema socket_instances PORT 6 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema socket_instances STATE 7 NULL NO enum 6 24 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('IDLE','ACTIVE') select,insert,update,references NULL -def performance_schema socket_summary_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL -def performance_schema socket_summary_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name COUNT_READ 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name SUM_TIMER_READ 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MIN_TIMER_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name AVG_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MAX_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name SUM_NUMBER_OF_BYTES_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name COUNT_WRITE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name SUM_TIMER_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MIN_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name AVG_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MAX_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name SUM_NUMBER_OF_BYTES_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name COUNT_MISC 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name SUM_TIMER_MISC 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MIN_TIMER_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name AVG_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_event_name MAX_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema socket_summary_by_instance OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema socket_summary_by_instance COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance COUNT_READ 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance SUM_TIMER_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MIN_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance AVG_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MAX_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance SUM_NUMBER_OF_BYTES_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance COUNT_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance SUM_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MIN_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance AVG_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MAX_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance SUM_NUMBER_OF_BYTES_WRITE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance COUNT_MISC 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance SUM_TIMER_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MIN_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance AVG_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema socket_summary_by_instance MAX_TIMER_MISC 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema sql_findings SQL_ID 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema sql_findings CODE 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema sql_findings LEVEL 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema sql_findings MESSAGE 4 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL -def performance_schema sql_findings QUERY_TEXT 5 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema sql_findings COUNT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema sql_findings LAST_RECORDED 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema sql_text DIGEST 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) UNI select,insert,update,references NULL -def performance_schema sql_text DIGEST_TEXT 2 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema status_by_account USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema status_by_account HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema status_by_account VARIABLE_NAME 3 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema status_by_account VARIABLE_VALUE 4 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema status_by_host HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL -def performance_schema status_by_host VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema status_by_host VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema status_by_thread THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema status_by_thread VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema status_by_thread VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema status_by_user USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL -def performance_schema status_by_user VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema status_by_user VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema table_handles OBJECT_TYPE 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema table_handles OBJECT_SCHEMA 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_handles OBJECT_NAME 3 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_handles OBJECT_INSTANCE_BEGIN 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema table_handles OWNER_THREAD_ID 5 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema table_handles OWNER_EVENT_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_handles INTERNAL_LOCK 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_handles EXTERNAL_LOCK 8 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage INDEX_NAME 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_STAR 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_WAIT 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_READ 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_WRITE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_FETCH 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_FETCH 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_FETCH 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_FETCH 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_FETCH 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_INSERT 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_INSERT 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_INSERT 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_INSERT 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_INSERT 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_UPDATE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_UPDATE 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_UPDATE 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_UPDATE 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_UPDATE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage COUNT_DELETE 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_DELETE 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_DELETE 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_DELETE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_DELETE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_FETCH 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_FETCH 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_FETCH 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_FETCH 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_FETCH 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_INSERT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_INSERT 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_INSERT 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_INSERT 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_INSERT 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_UPDATE 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_UPDATE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_UPDATE 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_UPDATE 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_UPDATE 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table COUNT_DELETE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table SUM_TIMER_DELETE 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MIN_TIMER_DELETE 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table AVG_TIMER_DELETE 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_io_waits_summary_by_table MAX_TIMER_DELETE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_READ_NORMAL 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_NORMAL 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_NORMAL 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_NORMAL 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_NORMAL 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_READ_WITH_SHARED_LOCKS 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_WITH_SHARED_LOCKS 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_WITH_SHARED_LOCKS 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_WITH_SHARED_LOCKS 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_WITH_SHARED_LOCKS 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_READ_HIGH_PRIORITY 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_HIGH_PRIORITY 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_HIGH_PRIORITY 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_HIGH_PRIORITY 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_HIGH_PRIORITY 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_READ_NO_INSERT 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_NO_INSERT 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_NO_INSERT 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_NO_INSERT 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_NO_INSERT 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_READ_EXTERNAL 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_EXTERNAL 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_EXTERNAL 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_EXTERNAL 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_EXTERNAL 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_ALLOW_WRITE 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_ALLOW_WRITE 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_ALLOW_WRITE 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_ALLOW_WRITE 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_ALLOW_WRITE 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_CONCURRENT_INSERT 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_CONCURRENT_INSERT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_CONCURRENT_INSERT 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_CONCURRENT_INSERT 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_CONCURRENT_INSERT 53 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_LOW_PRIORITY 54 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_LOW_PRIORITY 55 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_LOW_PRIORITY 56 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_LOW_PRIORITY 57 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_LOW_PRIORITY 58 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_NORMAL 59 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_NORMAL 60 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_NORMAL 61 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_NORMAL 62 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_NORMAL 63 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_EXTERNAL 64 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_EXTERNAL 65 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_EXTERNAL 66 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_EXTERNAL 67 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_EXTERNAL 68 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_statistics_by_table OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema table_statistics_by_table OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_statistics_by_table OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema table_statistics_by_table QUERIES_USED 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_statistics_by_table EMPTY_QUERIES 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_statistics_by_table IO_WRITE_BYTES 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_statistics_by_table IO_WRITE_REQUESTS 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_statistics_by_table IO_READ_BYTES 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema table_statistics_by_table IO_READ_REQUESTS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema threads THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema threads NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL -def performance_schema threads TYPE 3 NULL NO varchar 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(10) select,insert,update,references NULL -def performance_schema threads PROCESSLIST_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema threads PROCESSLIST_USER 5 NULL YES varchar 80 320 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(80) MUL select,insert,update,references NULL -def performance_schema threads PROCESSLIST_HOST 6 NULL YES varchar 255 255 NULL NULL NULL ascii ascii_general_ci varchar(255) MUL select,insert,update,references NULL -def performance_schema threads PROCESSLIST_DB 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema threads PROCESSLIST_COMMAND 8 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema threads PROCESSLIST_TIME 9 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema threads PROCESSLIST_STATE 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema threads PROCESSLIST_INFO 11 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL -def performance_schema threads PARENT_THREAD_ID 12 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema threads ROLE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema threads INSTRUMENTED 14 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema threads HISTORY 15 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL -def performance_schema threads CONNECTION_TYPE 16 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema threads THREAD_OS_ID 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL -def performance_schema threads RESOURCE_GROUP 18 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL -def performance_schema threads THREAD_PRIORITY 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL -def performance_schema tls_channel_status CHANNEL 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema tls_channel_status PROPERTY 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL -def performance_schema tls_channel_status VALUE 3 NULL NO varchar 2048 8192 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(2048) select,insert,update,references NULL -def performance_schema users USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) UNI select,insert,update,references NULL -def performance_schema users CURRENT_CONNECTIONS 2 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema users TOTAL_CONNECTIONS 3 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema user_defined_functions UDF_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema user_defined_functions UDF_RETURN_TYPE 2 NULL NO varchar 20 80 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(20) select,insert,update,references NULL -def performance_schema user_defined_functions UDF_TYPE 3 NULL NO varchar 20 80 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(20) select,insert,update,references NULL -def performance_schema user_defined_functions UDF_LIBRARY 4 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema user_defined_functions UDF_USAGE_COUNT 5 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL -def performance_schema user_variables_by_thread THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema user_variables_by_thread VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema user_variables_by_thread VARIABLE_VALUE 3 NULL YES longblob 4294967295 4294967295 NULL NULL NULL NULL NULL longblob select,insert,update,references NULL -def performance_schema variables_by_thread THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL -def performance_schema variables_by_thread VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL -def performance_schema variables_by_thread VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema variables_info VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema variables_info VARIABLE_SOURCE 2 COMPILED YES enum 12 48 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('COMPILED','GLOBAL','SERVER','EXPLICIT','EXTRA','USER','LOGIN','COMMAND_LINE','PERSISTED','DYNAMIC') select,insert,update,references NULL -def performance_schema variables_info VARIABLE_PATH 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL -def performance_schema variables_info MIN_VALUE 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema variables_info MAX_VALUE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema variables_info SET_TIME 6 NULL YES timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL -def performance_schema variables_info SET_USER 7 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) select,insert,update,references NULL -def performance_schema variables_info SET_HOST 8 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL -def performance_schema write_statistics TIMESTAMP 1 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema write_statistics TYPE 2 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema write_statistics VALUE 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema write_statistics WRITE_DATA_BYTES 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema write_statistics CPU_WRITE_TIME_MS 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema write_throttling_log MODE 1 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema write_throttling_log CREATION_TIME 2 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema write_throttling_log TYPE 3 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema write_throttling_log VALUE 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema write_throttling_log TRANSACTION_TYPE 5 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema write_throttling_log COUNT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL -def performance_schema write_throttling_rules MODE 1 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema write_throttling_rules CREATION_TIME 2 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL -def performance_schema write_throttling_rules TYPE 3 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL -def performance_schema write_throttling_rules VALUE 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL -def performance_schema write_throttling_rules THROTTLE_RATE 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT GENERATION_EXPRESSION SRS_ID COLUMN_SE_PRIVATE_DATA +def performance_schema accounts USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema accounts HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema accounts CURRENT_CONNECTIONS 3 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema accounts TOTAL_CONNECTIONS 4 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema binary_log_transaction_compression_stats LOG_TYPE 1 NULL NO enum 6 24 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('BINARY','RELAY') select,insert,update,references The log type to which the transactions were written. NULL NULL +def performance_schema binary_log_transaction_compression_stats COMPRESSION_TYPE 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references The transaction compression algorithm used. NULL NULL +def performance_schema binary_log_transaction_compression_stats TRANSACTION_COUNTER 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references Number of transactions written to the log NULL NULL +def performance_schema binary_log_transaction_compression_stats COMPRESSED_BYTES_COUNTER 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references The total number of bytes compressed. NULL NULL +def performance_schema binary_log_transaction_compression_stats UNCOMPRESSED_BYTES_COUNTER 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references The total number of bytes uncompressed. NULL NULL +def performance_schema binary_log_transaction_compression_stats COMPRESSION_PERCENTAGE 6 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint select,insert,update,references The compression ratio as a percentage. NULL NULL +def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_ID 7 NULL YES text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references The first transaction written. NULL NULL +def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_COMPRESSED_BYTES 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references First transaction written compressed bytes. NULL NULL +def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_UNCOMPRESSED_BYTES 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references First transaction written uncompressed bytes. NULL NULL +def performance_schema binary_log_transaction_compression_stats FIRST_TRANSACTION_TIMESTAMP 10 NULL YES timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references When the first transaction was written. NULL NULL +def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_ID 11 NULL YES text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references The last transaction written. NULL NULL +def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_COMPRESSED_BYTES 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references Last transaction written compressed bytes. NULL NULL +def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_UNCOMPRESSED_BYTES 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references Last transaction written uncompressed bytes. NULL NULL +def performance_schema binary_log_transaction_compression_stats LAST_TRANSACTION_TIMESTAMP 14 NULL YES timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references When the last transaction was written. NULL NULL +def performance_schema client_attributes CLIENT_ID 1 NULL YES varchar 65 260 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(65) UNI select,insert,update,references NULL NULL +def performance_schema client_attributes CLIENT_ATTRIBUTES 2 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema column_statistics SQL_ID 1 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema column_statistics TABLE_SCHEMA 2 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema column_statistics TABLE_NAME 3 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema column_statistics TABLE_INSTANCE 4 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema column_statistics COLUMN_NAME 5 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema column_statistics SQL_OPERATION 6 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema column_statistics OPERATOR_TYPE 7 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema cond_instances NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema cond_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema data_locks ENGINE 1 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) PRI select,insert,update,references NULL NULL +def performance_schema data_locks ENGINE_LOCK_ID 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema data_locks ENGINE_TRANSACTION_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema data_locks THREAD_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema data_locks EVENT_ID 5 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema data_locks OBJECT_SCHEMA 6 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema data_locks OBJECT_NAME 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema data_locks PARTITION_NAME 8 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema data_locks SUBPARTITION_NAME 9 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema data_locks INDEX_NAME 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema data_locks OBJECT_INSTANCE_BEGIN 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema data_locks LOCK_TYPE 12 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema data_locks LOCK_MODE 13 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema data_locks LOCK_STATUS 14 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema data_locks LOCK_DATA 15 NULL YES varchar 8192 32768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(8192) select,insert,update,references NULL NULL +def performance_schema data_lock_waits ENGINE 1 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema data_lock_waits REQUESTING_ENGINE_LOCK_ID 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema data_lock_waits REQUESTING_ENGINE_TRANSACTION_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema data_lock_waits REQUESTING_THREAD_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema data_lock_waits REQUESTING_EVENT_ID 5 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema data_lock_waits REQUESTING_OBJECT_INSTANCE_BEGIN 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema data_lock_waits BLOCKING_ENGINE_LOCK_ID 7 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema data_lock_waits BLOCKING_ENGINE_TRANSACTION_ID 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema data_lock_waits BLOCKING_THREAD_ID 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema data_lock_waits BLOCKING_EVENT_ID 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema data_lock_waits BLOCKING_OBJECT_INSTANCE_BEGIN 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema error_log LOGGED 1 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) PRI select,insert,update,references NULL NULL +def performance_schema error_log THREAD_ID 2 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema error_log PRIO 3 NULL NO enum 7 28 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('System','Error','Warning','Note') MUL select,insert,update,references NULL NULL +def performance_schema error_log ERROR_CODE 4 NULL YES varchar 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(10) MUL select,insert,update,references NULL NULL +def performance_schema error_log SUBSYSTEM 5 NULL YES varchar 7 28 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(7) MUL select,insert,update,references NULL NULL +def performance_schema error_log DATA 6 NULL NO text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error ERROR_NUMBER 3 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error ERROR_NAME 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error SQL_STATE 5 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error SUM_ERROR_RAISED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error SUM_ERROR_HANDLED 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error FIRST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_account_by_error LAST_SEEN 9 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error ERROR_NUMBER 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error ERROR_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error SQL_STATE 4 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error SUM_ERROR_RAISED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error SUM_ERROR_HANDLED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error FIRST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_host_by_error LAST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error ERROR_NUMBER 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error ERROR_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error SQL_STATE 4 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error SUM_ERROR_RAISED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error SUM_ERROR_HANDLED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error FIRST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_thread_by_error LAST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error ERROR_NUMBER 2 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error ERROR_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error SQL_STATE 4 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error SUM_ERROR_RAISED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error SUM_ERROR_HANDLED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error FIRST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_by_user_by_error LAST_SEEN 8 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error ERROR_NUMBER 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int UNI select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error ERROR_NAME 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error SQL_STATE 3 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error SUM_ERROR_RAISED 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error SUM_ERROR_HANDLED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error FIRST_SEEN 6 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_errors_summary_global_by_error LAST_SEEN 7 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema events_stages_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_stages_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_stages_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_stages_current SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_stages_current TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current NESTING_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_current NESTING_EVENT_TYPE 12 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_stages_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_stages_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_stages_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_stages_history SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_stages_history TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history NESTING_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history NESTING_EVENT_TYPE 12 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_stages_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_stages_history_long SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_stages_history_long TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long NESTING_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_history_long NESTING_EVENT_TYPE 12 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_stages_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_stages_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_statements_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_statements_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_current SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_current TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SQL_TEXT 10 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_current DIGEST 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_current DIGEST_TEXT 12 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_current CURRENT_SCHEMA 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_current OBJECT_TYPE 14 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_current OBJECT_SCHEMA 15 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_current OBJECT_NAME 16 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_current OBJECT_INSTANCE_BEGIN 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current MYSQL_ERRNO 18 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_statements_current RETURNED_SQLSTATE 19 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_statements_current MESSAGE_TEXT 20 NULL YES varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_current ERRORS 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current WARNINGS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current ROWS_AFFECTED 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current ROWS_SENT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current ROWS_EXAMINED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current CREATED_TMP_DISK_TABLES 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current CREATED_TMP_TABLES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SELECT_FULL_JOIN 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SELECT_FULL_RANGE_JOIN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SELECT_RANGE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SELECT_RANGE_CHECK 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SELECT_SCAN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SORT_MERGE_PASSES 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SORT_RANGE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SORT_ROWS 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SORT_SCAN 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current NO_INDEX_USED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current NO_GOOD_INDEX_USED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current NESTING_EVENT_ID 39 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current NESTING_EVENT_TYPE 40 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_statements_current NESTING_EVENT_LEVEL 41 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_statements_current STATEMENT_ID 42 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current CPU_TIME 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current TMP_TABLE_BYTES_WRITTEN 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current FILESORT_BYTES_WRITTEN 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current INDEX_DIVE_COUNT 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current INDEX_DIVE_CPU 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current COMPILATION_CPU 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current ELAPSED_TIME 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current SKIPPED_COUNT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current FILESORT_DISK_USAGE 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_current TMP_TABLE_DISK_USAGE 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest SCHEMA_NAME 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest DIGEST 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest BUCKET_NUMBER 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest BUCKET_TIMER_LOW 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest BUCKET_TIMER_HIGH 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest COUNT_BUCKET 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest COUNT_BUCKET_AND_LOWER 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_by_digest BUCKET_QUANTILE 8 NULL NO double NULL NULL 7 6 NULL NULL NULL double(7,6) select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_global BUCKET_NUMBER 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_global BUCKET_TIMER_LOW 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_global BUCKET_TIMER_HIGH 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_global COUNT_BUCKET 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_global COUNT_BUCKET_AND_LOWER 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_histogram_global BUCKET_QUANTILE 6 NULL NO double NULL NULL 7 6 NULL NULL NULL double(7,6) select,insert,update,references NULL NULL +def performance_schema events_statements_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_statements_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_statements_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_history SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SQL_TEXT 10 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_history DIGEST 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history DIGEST_TEXT 12 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_history CURRENT_SCHEMA 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history OBJECT_TYPE 14 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history OBJECT_SCHEMA 15 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history OBJECT_NAME 16 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history OBJECT_INSTANCE_BEGIN 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history MYSQL_ERRNO 18 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_statements_history RETURNED_SQLSTATE 19 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_statements_history MESSAGE_TEXT 20 NULL YES varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_history ERRORS 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history WARNINGS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history ROWS_AFFECTED 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history ROWS_SENT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history ROWS_EXAMINED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history CREATED_TMP_DISK_TABLES 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history CREATED_TMP_TABLES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SELECT_FULL_JOIN 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SELECT_FULL_RANGE_JOIN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SELECT_RANGE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SELECT_RANGE_CHECK 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SELECT_SCAN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SORT_MERGE_PASSES 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SORT_RANGE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SORT_ROWS 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SORT_SCAN 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history NO_INDEX_USED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history NO_GOOD_INDEX_USED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history NESTING_EVENT_ID 39 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history NESTING_EVENT_TYPE 40 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_statements_history NESTING_EVENT_LEVEL 41 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_statements_history STATEMENT_ID 42 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history CPU_TIME 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history TMP_TABLE_BYTES_WRITTEN 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history FILESORT_BYTES_WRITTEN 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history INDEX_DIVE_COUNT 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history INDEX_DIVE_CPU 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history COMPILATION_CPU 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history ELAPSED_TIME 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history SKIPPED_COUNT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history FILESORT_DISK_USAGE 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history TMP_TABLE_DISK_USAGE 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SQL_TEXT 10 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_history_long DIGEST 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long DIGEST_TEXT 12 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_history_long CURRENT_SCHEMA 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long OBJECT_TYPE 14 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long OBJECT_SCHEMA 15 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long OBJECT_NAME 16 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long OBJECT_INSTANCE_BEGIN 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long MYSQL_ERRNO 18 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_statements_history_long RETURNED_SQLSTATE 19 NULL YES varchar 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(5) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long MESSAGE_TEXT 20 NULL YES varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_history_long ERRORS 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long WARNINGS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long ROWS_AFFECTED 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long ROWS_SENT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long ROWS_EXAMINED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long CREATED_TMP_DISK_TABLES 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long CREATED_TMP_TABLES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SELECT_FULL_JOIN 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SELECT_FULL_RANGE_JOIN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SELECT_RANGE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SELECT_RANGE_CHECK 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SELECT_SCAN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SORT_MERGE_PASSES 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SORT_RANGE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SORT_ROWS 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SORT_SCAN 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long NO_INDEX_USED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long NO_GOOD_INDEX_USED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long NESTING_EVENT_ID 39 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long NESTING_EVENT_TYPE 40 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_statements_history_long NESTING_EVENT_LEVEL 41 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_statements_history_long STATEMENT_ID 42 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long CPU_TIME 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long TMP_TABLE_BYTES_WRITTEN 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long FILESORT_BYTES_WRITTEN 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long INDEX_DIVE_COUNT 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long INDEX_DIVE_CPU 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long COMPILATION_CPU 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long ELAPSED_TIME 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long SKIPPED_COUNT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long FILESORT_DISK_USAGE 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_history_long TMP_TABLE_DISK_USAGE 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ERRORS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_WARNINGS 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_AFFECTED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_SENT 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_EXAMINED 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_CREATED_TMP_DISK_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_CREATED_TMP_TABLES 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_FULL_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_FULL_RANGE_JOIN 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_RANGE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_RANGE_CHECK 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SELECT_SCAN 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_MERGE_PASSES 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_RANGE 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_ROWS 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SORT_SCAN 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_NO_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_NO_GOOD_INDEX_USED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_DELETED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_INSERTED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ROWS_UPDATED 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_CPU_TIME 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_FILESORT_BYTES_WRITTEN 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_INDEX_DIVE_COUNT 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_INDEX_DIVE_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_COMPILATION_CPU 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_ELAPSED_TIME 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_SKIPPED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_FILESORT_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_account_by_event_name SUM_TMP_TABLE_DISK_USAGE 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SCHEMA_NAME 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all DIGEST 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all USER 3 NULL YES varchar 80 320 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(80) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all CLIENT_ID 4 NULL YES varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all PLAN_ID 5 NULL YES varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all COUNT_STAR 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all MIN_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all AVG_TIMER_WAIT 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all MAX_TIMER_WAIT 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_LOCK_TIME 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ERRORS 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_WARNINGS 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ROWS_AFFECTED 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ROWS_SENT 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ROWS_EXAMINED 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_CREATED_TMP_DISK_TABLES 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_CREATED_TMP_TABLES 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SELECT_FULL_JOIN 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SELECT_FULL_RANGE_JOIN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SELECT_RANGE 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SELECT_RANGE_CHECK 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SELECT_SCAN 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SORT_MERGE_PASSES 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SORT_RANGE 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SORT_ROWS 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SORT_SCAN 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_NO_INDEX_USED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_NO_GOOD_INDEX_USED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ROWS_DELETED 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ROWS_INSERTED 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ROWS_UPDATED 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_CPU_TIME 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_TMP_TABLE_BYTES_WRITTEN 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_FILESORT_BYTES_WRITTEN 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_INDEX_DIVE_COUNT 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_INDEX_DIVE_CPU 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_COMPILATION_CPU 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_ELAPSED_TIME 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_SKIPPED 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_FILESORT_DISK_USAGE 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all SUM_TMP_TABLE_DISK_USAGE 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all FIRST_SEEN 43 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all LAST_SEEN 44 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all QUANTILE_95 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all QUANTILE_99 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all QUANTILE_999 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all QUERY_SAMPLE_TEXT 48 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all QUERY_SAMPLE_SEEN 49 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_all QUERY_SAMPLE_TIMER_WAIT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SCHEMA_NAME 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest DIGEST 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest DIGEST_TEXT 3 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_LOCK_TIME 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ERRORS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_WARNINGS 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ROWS_AFFECTED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ROWS_SENT 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ROWS_EXAMINED 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_CREATED_TMP_DISK_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_CREATED_TMP_TABLES 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SELECT_FULL_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SELECT_FULL_RANGE_JOIN 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SELECT_RANGE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SELECT_RANGE_CHECK 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SELECT_SCAN 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SORT_MERGE_PASSES 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SORT_RANGE 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SORT_ROWS 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SORT_SCAN 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_NO_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_NO_GOOD_INDEX_USED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ROWS_DELETED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ROWS_INSERTED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ROWS_UPDATED 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_CPU_TIME 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_TMP_TABLE_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_FILESORT_BYTES_WRITTEN 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_INDEX_DIVE_COUNT 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_INDEX_DIVE_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_COMPILATION_CPU 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_ELAPSED_TIME 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_SKIPPED 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_FILESORT_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest SUM_TMP_TABLE_DISK_USAGE 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest FIRST_SEEN 41 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest LAST_SEEN 42 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest QUANTILE_95 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest QUANTILE_99 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest QUANTILE_999 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest QUERY_SAMPLE_TEXT 46 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest QUERY_SAMPLE_SEEN 47 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_digest QUERY_SAMPLE_TIMER_WAIT 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_LOCK_TIME 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ERRORS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_WARNINGS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_AFFECTED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_SENT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_EXAMINED 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_CREATED_TMP_DISK_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_CREATED_TMP_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_FULL_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_FULL_RANGE_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_RANGE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_RANGE_CHECK 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SELECT_SCAN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_MERGE_PASSES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_RANGE 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_ROWS 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SORT_SCAN 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_NO_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_NO_GOOD_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_DELETED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_INSERTED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ROWS_UPDATED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_CPU_TIME 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_FILESORT_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_INDEX_DIVE_COUNT 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_INDEX_DIVE_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_COMPILATION_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_ELAPSED_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_SKIPPED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_FILESORT_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_host_by_event_name SUM_TMP_TABLE_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program OBJECT_TYPE 1 NULL NO enum 9 36 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('EVENT','FUNCTION','PROCEDURE','TABLE','TRIGGER') PRI select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program OBJECT_SCHEMA 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program OBJECT_NAME 3 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program COUNT_STATEMENTS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_STATEMENTS_WAIT 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program MIN_STATEMENTS_WAIT 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program AVG_STATEMENTS_WAIT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program MAX_STATEMENTS_WAIT 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_LOCK_TIME 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ERRORS 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_WARNINGS 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ROWS_AFFECTED 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ROWS_SENT 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ROWS_EXAMINED 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_CREATED_TMP_DISK_TABLES 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_CREATED_TMP_TABLES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SELECT_FULL_JOIN 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SELECT_FULL_RANGE_JOIN 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SELECT_RANGE 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SELECT_RANGE_CHECK 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SELECT_SCAN 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SORT_MERGE_PASSES 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SORT_RANGE 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SORT_ROWS 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SORT_SCAN 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_NO_INDEX_USED 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_NO_GOOD_INDEX_USED 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ROWS_DELETED 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ROWS_INSERTED 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ROWS_UPDATED 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_CPU_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_TMP_TABLE_BYTES_WRITTEN 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_FILESORT_BYTES_WRITTEN 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_INDEX_DIVE_COUNT 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_INDEX_DIVE_CPU 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_COMPILATION_CPU 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_ELAPSED_TIME 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_SKIPPED 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_FILESORT_DISK_USAGE 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_program SUM_TMP_TABLE_DISK_USAGE 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_LOCK_TIME 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ERRORS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_WARNINGS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_AFFECTED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_SENT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_EXAMINED 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_CREATED_TMP_DISK_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_CREATED_TMP_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_FULL_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_FULL_RANGE_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_RANGE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_RANGE_CHECK 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SELECT_SCAN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_MERGE_PASSES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_RANGE 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_ROWS 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SORT_SCAN 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_NO_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_NO_GOOD_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_DELETED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_INSERTED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ROWS_UPDATED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_CPU_TIME 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_FILESORT_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_INDEX_DIVE_COUNT 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_INDEX_DIVE_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_COMPILATION_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_ELAPSED_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_SKIPPED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_FILESORT_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_thread_by_event_name SUM_TMP_TABLE_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_LOCK_TIME 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ERRORS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_WARNINGS 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_AFFECTED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_SENT 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_EXAMINED 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_CREATED_TMP_DISK_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_CREATED_TMP_TABLES 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_FULL_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_FULL_RANGE_JOIN 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_RANGE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_RANGE_CHECK 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SELECT_SCAN 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_MERGE_PASSES 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_RANGE 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_ROWS 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SORT_SCAN 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_NO_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_NO_GOOD_INDEX_USED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_DELETED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_INSERTED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ROWS_UPDATED 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_CPU_TIME 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_FILESORT_BYTES_WRITTEN 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_INDEX_DIVE_COUNT 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_INDEX_DIVE_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_COMPILATION_CPU 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_ELAPSED_TIME 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_SKIPPED 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_FILESORT_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_by_user_by_event_name SUM_TMP_TABLE_DISK_USAGE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_LOCK_TIME 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ERRORS 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_WARNINGS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_AFFECTED 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_SENT 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_EXAMINED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_CREATED_TMP_DISK_TABLES 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_CREATED_TMP_TABLES 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_FULL_JOIN 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_FULL_RANGE_JOIN 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_RANGE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_RANGE_CHECK 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SELECT_SCAN 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SORT_MERGE_PASSES 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SORT_RANGE 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SORT_ROWS 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SORT_SCAN 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_NO_INDEX_USED 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_NO_GOOD_INDEX_USED 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_DELETED 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_INSERTED 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ROWS_UPDATED 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_CPU_TIME 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_TMP_TABLE_BYTES_WRITTEN 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_FILESORT_BYTES_WRITTEN 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_INDEX_DIVE_COUNT 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_INDEX_DIVE_CPU 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_COMPILATION_CPU 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_ELAPSED_TIME 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_SKIPPED 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_FILESORT_DISK_USAGE 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_statements_summary_global_by_event_name SUM_TMP_TABLE_DISK_USAGE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_transactions_current STATE 5 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ACTIVE','COMMITTED','ROLLED BACK') select,insert,update,references NULL NULL +def performance_schema events_transactions_current TRX_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current GTID 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_current XID_FORMAT_ID 8 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_transactions_current XID_GTRID 9 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL NULL +def performance_schema events_transactions_current XID_BQUAL 10 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL NULL +def performance_schema events_transactions_current XA_STATE 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_current SOURCE 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_current TIMER_START 13 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current TIMER_END 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current TIMER_WAIT 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current ACCESS_MODE 16 NULL YES enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('READ ONLY','READ WRITE') select,insert,update,references NULL NULL +def performance_schema events_transactions_current ISOLATION_LEVEL 17 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_current AUTOCOMMIT 18 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema events_transactions_current NUMBER_OF_SAVEPOINTS 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current NUMBER_OF_ROLLBACK_TO_SAVEPOINT 20 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current NUMBER_OF_RELEASE_SAVEPOINT 21 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current OBJECT_INSTANCE_BEGIN 22 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current NESTING_EVENT_ID 23 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_current NESTING_EVENT_TYPE 24 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_transactions_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_transactions_history STATE 5 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ACTIVE','COMMITTED','ROLLED BACK') select,insert,update,references NULL NULL +def performance_schema events_transactions_history TRX_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history GTID 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history XID_FORMAT_ID 8 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_transactions_history XID_GTRID 9 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL NULL +def performance_schema events_transactions_history XID_BQUAL 10 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL NULL +def performance_schema events_transactions_history XA_STATE 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history SOURCE 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history TIMER_START 13 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history TIMER_END 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history TIMER_WAIT 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history ACCESS_MODE 16 NULL YES enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('READ ONLY','READ WRITE') select,insert,update,references NULL NULL +def performance_schema events_transactions_history ISOLATION_LEVEL 17 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history AUTOCOMMIT 18 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema events_transactions_history NUMBER_OF_SAVEPOINTS 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history NUMBER_OF_ROLLBACK_TO_SAVEPOINT 20 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history NUMBER_OF_RELEASE_SAVEPOINT 21 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history OBJECT_INSTANCE_BEGIN 22 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history NESTING_EVENT_ID 23 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history NESTING_EVENT_TYPE 24 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long STATE 5 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ACTIVE','COMMITTED','ROLLED BACK') select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long TRX_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long GTID 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long XID_FORMAT_ID 8 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long XID_GTRID 9 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long XID_BQUAL 10 NULL YES varchar 130 520 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(130) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long XA_STATE 11 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long SOURCE 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long TIMER_START 13 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long TIMER_END 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long TIMER_WAIT 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long ACCESS_MODE 16 NULL YES enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('READ ONLY','READ WRITE') select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long ISOLATION_LEVEL 17 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long AUTOCOMMIT 18 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long NUMBER_OF_SAVEPOINTS 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long NUMBER_OF_ROLLBACK_TO_SAVEPOINT 20 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long NUMBER_OF_RELEASE_SAVEPOINT 21 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long OBJECT_INSTANCE_BEGIN 22 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long NESTING_EVENT_ID 23 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_history_long NESTING_EVENT_TYPE 24 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name COUNT_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name SUM_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name MIN_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name AVG_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name MAX_TIMER_READ_WRITE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name COUNT_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name SUM_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name MIN_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name AVG_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_account_by_event_name MAX_TIMER_READ_ONLY 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name COUNT_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name SUM_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name MIN_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name AVG_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name MAX_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name COUNT_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name SUM_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name MIN_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name AVG_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_host_by_event_name MAX_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name COUNT_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name SUM_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name MIN_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name AVG_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name MAX_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name COUNT_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name SUM_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name MIN_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name AVG_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_thread_by_event_name MAX_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name COUNT_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name SUM_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name MIN_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name AVG_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name MAX_TIMER_READ_WRITE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name COUNT_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name SUM_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name MIN_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name AVG_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_by_user_by_event_name MAX_TIMER_READ_ONLY 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name COUNT_READ_WRITE 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name SUM_TIMER_READ_WRITE 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name MIN_TIMER_READ_WRITE 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name AVG_TIMER_READ_WRITE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name MAX_TIMER_READ_WRITE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name COUNT_READ_ONLY 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name SUM_TIMER_READ_ONLY 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name MIN_TIMER_READ_ONLY 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name AVG_TIMER_READ_ONLY 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_transactions_summary_global_by_event_name MAX_TIMER_READ_ONLY 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_waits_current EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_waits_current END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_waits_current SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_current TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current SPINS 9 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current OBJECT_SCHEMA 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_current OBJECT_NAME 11 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema events_waits_current INDEX_NAME 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_current OBJECT_TYPE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_current OBJECT_INSTANCE_BEGIN 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current NESTING_EVENT_ID 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_current NESTING_EVENT_TYPE 16 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_waits_current OPERATION 17 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema events_waits_current NUMBER_OF_BYTES 18 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema events_waits_current FLAGS 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_waits_history EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_waits_history END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_waits_history SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history SPINS 9 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history OBJECT_SCHEMA 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history OBJECT_NAME 11 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema events_waits_history INDEX_NAME 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history OBJECT_TYPE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history OBJECT_INSTANCE_BEGIN 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history NESTING_EVENT_ID 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history NESTING_EVENT_TYPE 16 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_waits_history OPERATION 17 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema events_waits_history NUMBER_OF_BYTES 18 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema events_waits_history FLAGS 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long EVENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long END_EVENT_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long EVENT_NAME 4 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long SOURCE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long TIMER_START 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long TIMER_END 7 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long TIMER_WAIT 8 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long SPINS 9 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long OBJECT_SCHEMA 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long OBJECT_NAME 11 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long INDEX_NAME 12 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long OBJECT_TYPE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long OBJECT_INSTANCE_BEGIN 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long NESTING_EVENT_ID 15 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_history_long NESTING_EVENT_TYPE 16 NULL YES enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('TRANSACTION','STATEMENT','STAGE','WAIT') select,insert,update,references NULL NULL +def performance_schema events_waits_history_long OPERATION 17 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema events_waits_history_long NUMBER_OF_BYTES 18 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema events_waits_history_long FLAGS 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_account_by_event_name MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_host_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_instance MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_thread_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_by_user_by_event_name MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema events_waits_summary_global_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_global_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_global_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_global_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema events_waits_summary_global_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_instances FILE_NAME 1 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) PRI select,insert,update,references NULL NULL +def performance_schema file_instances EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema file_instances OPEN_COUNT 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name COUNT_READ 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name SUM_TIMER_READ 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MIN_TIMER_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name AVG_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MAX_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name SUM_NUMBER_OF_BYTES_READ 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name COUNT_WRITE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name SUM_TIMER_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MIN_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name AVG_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MAX_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name SUM_NUMBER_OF_BYTES_WRITE 18 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name COUNT_MISC 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name SUM_TIMER_MISC 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MIN_TIMER_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name AVG_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_event_name MAX_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance FILE_NAME 1 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) MUL select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance OBJECT_INSTANCE_BEGIN 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance COUNT_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance SUM_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MIN_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance AVG_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MAX_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance SUM_NUMBER_OF_BYTES_READ 14 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance COUNT_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance SUM_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MIN_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance AVG_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MAX_TIMER_WRITE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance SUM_NUMBER_OF_BYTES_WRITE 20 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance COUNT_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance SUM_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MIN_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance AVG_TIMER_MISC 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema file_summary_by_instance MAX_TIMER_MISC 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema global_status VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema global_status VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema global_variables VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema global_variables VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema hosts HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) UNI select,insert,update,references NULL NULL +def performance_schema hosts CURRENT_CONNECTIONS 2 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema hosts TOTAL_CONNECTIONS 3 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache IP 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema host_cache HOST 2 NULL YES varchar 255 255 NULL NULL NULL ascii ascii_general_ci varchar(255) MUL select,insert,update,references NULL NULL +def performance_schema host_cache HOST_VALIDATED 3 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema host_cache SUM_CONNECT_ERRORS 4 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_HOST_BLOCKED_ERRORS 5 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_NAMEINFO_TRANSIENT_ERRORS 6 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_NAMEINFO_PERMANENT_ERRORS 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_FORMAT_ERRORS 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_ADDRINFO_TRANSIENT_ERRORS 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_ADDRINFO_PERMANENT_ERRORS 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_FCRDNS_ERRORS 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_HOST_ACL_ERRORS 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_NO_AUTH_PLUGIN_ERRORS 13 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_AUTH_PLUGIN_ERRORS 14 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_HANDSHAKE_ERRORS 15 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_PROXY_USER_ERRORS 16 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_PROXY_USER_ACL_ERRORS 17 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_AUTHENTICATION_ERRORS 18 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_SSL_ERRORS 19 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_MAX_USER_CONNECTIONS_ERRORS 20 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 21 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_DEFAULT_DATABASE_ERRORS 22 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_INIT_CONNECT_ERRORS 23 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_LOCAL_ERRORS 24 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache COUNT_UNKNOWN_ERRORS 25 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema host_cache FIRST_SEEN 26 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema host_cache LAST_SEEN 27 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema host_cache FIRST_ERROR_SEEN 28 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema host_cache LAST_ERROR_SEEN 29 0000-00-00 00:00:00 YES timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema index_statistics TABLE_SCHEMA 1 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema index_statistics TABLE_NAME 2 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema index_statistics INDEX_NAME 3 NULL YES varchar 192 768 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(192) select,insert,update,references NULL NULL +def performance_schema index_statistics ROWS_REQUESTED 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema keyring_keys KEY_ID 1 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(255) select,insert,update,references NULL NULL +def performance_schema keyring_keys KEY_OWNER 2 NULL YES varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(255) select,insert,update,references NULL NULL +def performance_schema keyring_keys BACKEND_KEY_ID 3 NULL YES varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(255) select,insert,update,references NULL NULL +def performance_schema log_status SERVER_UUID 1 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL NULL +def performance_schema log_status LOCAL 2 NULL NO json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references NULL NULL +def performance_schema log_status REPLICATION 3 NULL NO json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references NULL NULL +def performance_schema log_status STORAGE_ENGINES 4 NULL NO json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name USER 1 NULL YES char 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin char(32) MUL select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name EVENT_NAME 3 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name COUNT_ALLOC 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name COUNT_FREE 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name SUM_NUMBER_OF_BYTES_FREE 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name LOW_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name CURRENT_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name HIGH_COUNT_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name LOW_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name CURRENT_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_account_by_event_name HIGH_NUMBER_OF_BYTES_USED 13 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name COUNT_ALLOC 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name COUNT_FREE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name SUM_NUMBER_OF_BYTES_FREE 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name LOW_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name CURRENT_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name HIGH_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name LOW_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name CURRENT_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_host_by_event_name HIGH_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name COUNT_ALLOC 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name COUNT_FREE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name SUM_NUMBER_OF_BYTES_FREE 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name LOW_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name CURRENT_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name HIGH_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name LOW_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name CURRENT_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_thread_by_event_name HIGH_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name USER 1 NULL YES char 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin char(32) MUL select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name EVENT_NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name COUNT_ALLOC 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name COUNT_FREE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name SUM_NUMBER_OF_BYTES_FREE 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name LOW_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name CURRENT_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name HIGH_COUNT_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name LOW_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name CURRENT_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_by_user_by_event_name HIGH_NUMBER_OF_BYTES_USED 12 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name COUNT_ALLOC 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name COUNT_FREE 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name SUM_NUMBER_OF_BYTES_ALLOC 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name SUM_NUMBER_OF_BYTES_FREE 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name LOW_COUNT_USED 6 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name CURRENT_COUNT_USED 7 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name HIGH_COUNT_USED 8 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name LOW_NUMBER_OF_BYTES_USED 9 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name CURRENT_NUMBER_OF_BYTES_USED 10 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema memory_summary_global_by_event_name HIGH_NUMBER_OF_BYTES_USED 11 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema metadata_locks OBJECT_TYPE 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema metadata_locks OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema metadata_locks OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema metadata_locks COLUMN_NAME 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema metadata_locks OBJECT_INSTANCE_BEGIN 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema metadata_locks LOCK_TYPE 6 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema metadata_locks LOCK_DURATION 7 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema metadata_locks LOCK_STATUS 8 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema metadata_locks SOURCE 9 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema metadata_locks OWNER_THREAD_ID 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema metadata_locks OWNER_EVENT_ID 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema mutex_instances NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema mutex_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema mutex_instances LOCKED_BY_THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema objects_summary_global_by_type MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema performance_timers TIMER_NAME 1 NULL NO enum 11 44 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('CYCLE','NANOSECOND','MICROSECOND','MILLISECOND') select,insert,update,references NULL NULL +def performance_schema performance_timers TIMER_FREQUENCY 2 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema performance_timers TIMER_RESOLUTION 3 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema performance_timers TIMER_OVERHEAD 4 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema persisted_variables VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema persisted_variables VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances OBJECT_INSTANCE_BEGIN 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances STATEMENT_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances STATEMENT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SQL_TEXT 4 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances OWNER_THREAD_ID 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances OWNER_EVENT_ID 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances OWNER_OBJECT_TYPE 7 NULL YES enum 9 36 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('EVENT','FUNCTION','PROCEDURE','TABLE','TRIGGER') MUL select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances OWNER_OBJECT_SCHEMA 8 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances OWNER_OBJECT_NAME 9 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances TIMER_PREPARE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances COUNT_REPREPARE 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances COUNT_EXECUTE 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_TIMER_EXECUTE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances MIN_TIMER_EXECUTE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances AVG_TIMER_EXECUTE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances MAX_TIMER_EXECUTE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_LOCK_TIME 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ERRORS 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_WARNINGS 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ROWS_AFFECTED 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ROWS_SENT 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ROWS_EXAMINED 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_CREATED_TMP_DISK_TABLES 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_CREATED_TMP_TABLES 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SELECT_FULL_JOIN 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SELECT_FULL_RANGE_JOIN 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SELECT_RANGE 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SELECT_RANGE_CHECK 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SELECT_SCAN 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SORT_MERGE_PASSES 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SORT_RANGE 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SORT_ROWS 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SORT_SCAN 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_NO_INDEX_USED 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_NO_GOOD_INDEX_USED 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ROWS_DELETED 36 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ROWS_INSERTED 37 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ROWS_UPDATED 38 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_CPU_TIME 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_TMP_TABLE_BYTES_WRITTEN 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_FILESORT_BYTES_WRITTEN 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_INDEX_DIVE_COUNT 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_INDEX_DIVE_CPU 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_COMPILATION_CPU 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_ELAPSED_TIME 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_SKIPPED 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_FILESORT_DISK_USAGE 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema prepared_statements_instances SUM_TMP_TABLE_DISK_USAGE 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema processlist ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema processlist USER 2 NULL YES varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(32) select,insert,update,references NULL NULL +def performance_schema processlist HOST 3 NULL YES varchar 255 255 NULL NULL NULL ascii ascii_general_ci varchar(255) select,insert,update,references NULL NULL +def performance_schema processlist DB 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema processlist COMMAND 5 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema processlist TIME 6 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema processlist STATE 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema processlist INFO 8 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema replication_applier_configuration CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL NULL +def performance_schema replication_applier_configuration DESIRED_DELAY 2 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_applier_configuration PRIVILEGE_CHECKS_USER 3 NULL YES text 65535 65535 NULL NULL NULL utf8 utf8_bin text select,insert,update,references User name for the security context of the applier. NULL NULL +def performance_schema replication_applier_configuration REQUIRE_ROW_FORMAT 4 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references Indicates whether the channel shall only accept row based events. NULL NULL +def performance_schema replication_applier_configuration REQUIRE_TABLE_PRIMARY_KEY_CHECK 5 NULL NO enum 6 24 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('STREAM','ON','OFF') select,insert,update,references Indicates what is the channel policy regarding tables having primary keys on create and alter table queries NULL NULL +def performance_schema replication_applier_configuration ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE 6 NULL NO enum 5 20 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('OFF','LOCAL','UUID') select,insert,update,references Indicates whether the channel will generate a new GTID for anonymous transactions. OFF means that anonymous transactions will remain anonymous. LOCAL means that anonymous transactions will be assigned a newly generated GTID based on server_uuid. UUID indicates that anonymous transactions will be assigned a newly generated GTID based on Assign_gtids_to_anonymous_transactions_value NULL NULL +def performance_schema replication_applier_configuration ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_VALUE 7 NULL YES text 65535 65535 NULL NULL NULL utf8 utf8_bin text select,insert,update,references Indicates the UUID used while generating GTIDs for anonymous transactions NULL NULL +def performance_schema replication_applier_filters CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL NULL +def performance_schema replication_applier_filters FILTER_NAME 2 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL NULL +def performance_schema replication_applier_filters FILTER_RULE 3 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema replication_applier_filters CONFIGURED_BY 4 NULL NO enum 37 148 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('STARTUP_OPTIONS','CHANGE_REPLICATION_FILTER','STARTUP_OPTIONS_FOR_CHANNEL','CHANGE_REPLICATION_FILTER_FOR_CHANNEL') select,insert,update,references NULL NULL +def performance_schema replication_applier_filters ACTIVE_SINCE 5 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_filters COUNTER 6 0 NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_applier_global_filters FILTER_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL NULL +def performance_schema replication_applier_global_filters FILTER_RULE 2 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema replication_applier_global_filters CONFIGURED_BY 3 NULL NO enum 25 100 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('STARTUP_OPTIONS','CHANGE_REPLICATION_FILTER') select,insert,update,references NULL NULL +def performance_schema replication_applier_global_filters ACTIVE_SINCE 4 0000-00-00 00:00:00.000000 NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL NULL +def performance_schema replication_applier_status SERVICE_STATE 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF') select,insert,update,references NULL NULL +def performance_schema replication_applier_status REMAINING_DELAY 3 NULL YES int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema replication_applier_status COUNT_TRANSACTIONS_RETRIES 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator THREAD_ID 2 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator SERVICE_STATE 3 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF') select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_ERROR_NUMBER 4 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_ERROR_MESSAGE 5 NULL NO varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_ERROR_TIMESTAMP 6 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION 7 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 8 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 9 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_START_BUFFER_TIMESTAMP 10 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator LAST_PROCESSED_TRANSACTION_END_BUFFER_TIMESTAMP 11 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION 12 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 13 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 14 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_coordinator PROCESSING_TRANSACTION_START_BUFFER_TIMESTAMP 15 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker WORKER_ID 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker SERVICE_STATE 4 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF') select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_ERROR_NUMBER 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_ERROR_MESSAGE 6 NULL NO varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_ERROR_TIMESTAMP 7 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION 8 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 9 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 10 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_START_APPLY_TIMESTAMP 11 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_END_APPLY_TIMESTAMP 12 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION 13 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 14 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 15 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_START_APPLY_TIMESTAMP 16 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_RETRIES_COUNT 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_NUMBER 18 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE 19 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_TIMESTAMP 20 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_RETRIES_COUNT 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_NUMBER 22 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE 23 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema replication_applier_status_by_worker APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_TIMESTAMP 24 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_asynchronous_connection_failover CHANNEL_NAME 1 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The replication channel name that connects source and replica. NULL NULL +def performance_schema replication_asynchronous_connection_failover HOST 2 NULL NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) PRI select,insert,update,references The source hostname that the replica will attempt to switch over the replication connection to in case of a failure. NULL NULL +def performance_schema replication_asynchronous_connection_failover PORT 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int PRI select,insert,update,references The source port that the replica will attempt to switch over the replication connection to in case of a failure. NULL NULL +def performance_schema replication_asynchronous_connection_failover NETWORK_NAMESPACE 4 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references The source network namespace that the replica will attempt to switch over the replication connection to in case of a failure. If its value is empty, connections use the default (global) namespace. NULL NULL +def performance_schema replication_asynchronous_connection_failover WEIGHT 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references The order in which the replica shall try to switch the connection over to when there are failures. Weight can be set to a number between 1 and 100, where 100 is the highest weight and 1 the lowest. NULL NULL +def performance_schema replication_asynchronous_connection_failover MANAGED_NAME 6 NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The name of the group which this server belongs to. NULL NULL +def performance_schema replication_asynchronous_connection_failover_managed CHANNEL_NAME 1 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The replication channel name that connects source and replica. NULL NULL +def performance_schema replication_asynchronous_connection_failover_managed MANAGED_NAME 2 NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references The name of the source which needs to be managed. NULL NULL +def performance_schema replication_asynchronous_connection_failover_managed MANAGED_TYPE 3 NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references Determines the managed type. NULL NULL +def performance_schema replication_asynchronous_connection_failover_managed CONFIGURATION 4 NULL YES json NULL NULL NULL NULL NULL NULL NULL json select,insert,update,references The data to help manage group. For Managed_type = GroupReplication, Configuration value should contain {"Primary_weight": 80, "Secondary_weight": 60}, so that it assigns weight=80 to PRIMARY of the group, and weight=60 for rest of the members in mysql.replication_asynchronous_connection_failover table. NULL NULL +def performance_schema replication_connection_configuration CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration HOST 2 NULL NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration PORT 3 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration USER 4 NULL NO char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration NETWORK_INTERFACE 5 NULL NO char 60 240 NULL NULL NULL utf8mb4 utf8mb4_bin char(60) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration AUTO_POSITION 6 NULL NO enum 1 4 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('1','0') select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_ALLOWED 7 NULL NO enum 7 28 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO','IGNORED') select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_CA_FILE 8 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_CA_PATH 9 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_CERTIFICATE 10 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_CIPHER 11 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_KEY 12 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_VERIFY_SERVER_CERTIFICATE 13 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_CRL_FILE 14 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(255) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SSL_CRL_PATH 15 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(255) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration CONNECTION_RETRY_INTERVAL 16 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration CONNECTION_RETRY_COUNT 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration HEARTBEAT_INTERVAL 18 NULL NO double NULL NULL 10 3 NULL NULL NULL double(10,3) unsigned select,insert,update,references Number of seconds after which a heartbeat will be sent . NULL NULL +def performance_schema replication_connection_configuration TLS_VERSION 19 NULL NO varchar 255 1020 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(255) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration PUBLIC_KEY_PATH 20 NULL NO varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration GET_PUBLIC_KEY 21 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration NETWORK_NAMESPACE 22 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration COMPRESSION_ALGORITHM 23 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references Compression algorithm used for data transfer between master and slave. NULL NULL +def performance_schema replication_connection_configuration ZSTD_COMPRESSION_LEVEL 24 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references Compression level associated with zstd compression algorithm. NULL NULL +def performance_schema replication_connection_configuration TLS_CIPHERSUITES 25 NULL YES text 65535 65535 NULL NULL NULL utf8 utf8_bin text select,insert,update,references NULL NULL +def performance_schema replication_connection_configuration SOURCE_CONNECTION_AUTO_FAILOVER 26 NULL NO enum 1 4 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('1','0') select,insert,update,references NULL NULL +def performance_schema replication_connection_status CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) PRI select,insert,update,references NULL NULL +def performance_schema replication_connection_status GROUP_NAME 2 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL NULL +def performance_schema replication_connection_status SOURCE_UUID 3 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL NULL +def performance_schema replication_connection_status THREAD_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema replication_connection_status SERVICE_STATE 5 NULL NO enum 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('ON','OFF','CONNECTING') select,insert,update,references NULL NULL +def performance_schema replication_connection_status COUNT_RECEIVED_HEARTBEATS 6 0 NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_HEARTBEAT_TIMESTAMP 7 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references Shows when the most recent heartbeat signal was received. NULL NULL +def performance_schema replication_connection_status RECEIVED_TRANSACTION_SET 8 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_ERROR_NUMBER 9 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_ERROR_MESSAGE 10 NULL NO varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_ERROR_TIMESTAMP 11 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION 12 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 13 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 14 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_START_QUEUE_TIMESTAMP 15 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status LAST_QUEUED_TRANSACTION_END_QUEUE_TIMESTAMP 16 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status QUEUEING_TRANSACTION 17 NULL YES char 57 228 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(57) select,insert,update,references NULL NULL +def performance_schema replication_connection_status QUEUEING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP 18 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status QUEUEING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP 19 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_connection_status QUEUEING_TRANSACTION_START_QUEUE_TIMESTAMP 20 NULL NO timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema replication_group_members CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL NULL +def performance_schema replication_group_members MEMBER_ID 2 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL NULL +def performance_schema replication_group_members MEMBER_HOST 3 NULL NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema replication_group_members MEMBER_PORT 4 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema replication_group_members MEMBER_STATE 5 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references NULL NULL +def performance_schema replication_group_members MEMBER_ROLE 6 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references NULL NULL +def performance_schema replication_group_members MEMBER_VERSION 7 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_bin char(64) select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats CHANNEL_NAME 1 NULL NO char 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci char(64) select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats VIEW_ID 2 NULL NO char 60 240 NULL NULL NULL utf8mb4 utf8mb4_bin char(60) select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats MEMBER_ID 3 NULL NO char 36 144 NULL NULL NULL utf8mb4 utf8mb4_bin char(36) select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_IN_QUEUE 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_CHECKED 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_CONFLICTS_DETECTED 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_ROWS_VALIDATING 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats TRANSACTIONS_COMMITTED_ALL_MEMBERS 8 NULL NO longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats LAST_CONFLICT_FREE_TRANSACTION 9 NULL NO text 65535 65535 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci text select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_REMOTE_APPLIED 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_LOCAL_PROPOSED 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replication_group_member_stats COUNT_TRANSACTIONS_LOCAL_ROLLBACK 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replica_statistics SERVER_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema replica_statistics TIMESTAMP 2 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema replica_statistics MILLI_SEC_BEHIND_MASTER 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema rwlock_instances NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema rwlock_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema rwlock_instances WRITE_LOCKED_BY_THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema rwlock_instances READ_LOCKED_BY_COUNT 4 NULL NO int NULL NULL 10 0 NULL NULL NULL int unsigned select,insert,update,references NULL NULL +def performance_schema session_account_connect_attrs PROCESSLIST_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema session_account_connect_attrs ATTR_NAME 2 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(32) PRI select,insert,update,references NULL NULL +def performance_schema session_account_connect_attrs ATTR_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(1024) select,insert,update,references NULL NULL +def performance_schema session_account_connect_attrs ORDINAL_POSITION 4 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema session_connect_attrs PROCESSLIST_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema session_connect_attrs ATTR_NAME 2 NULL NO varchar 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(32) PRI select,insert,update,references NULL NULL +def performance_schema session_connect_attrs ATTR_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_bin varchar(1024) select,insert,update,references NULL NULL +def performance_schema session_connect_attrs ORDINAL_POSITION 4 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema session_query_attrs PROCESSLIST_ID 1 0 NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema session_query_attrs ATTR_NAME 2 NULL NO varchar 256 1024 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(256) select,insert,update,references NULL NULL +def performance_schema session_query_attrs ATTR_VALUE 3 NULL NO varchar 256 1024 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(256) select,insert,update,references NULL NULL +def performance_schema session_query_attrs ORDINAL_POSITION 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema session_status VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema session_status VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema session_variables VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema session_variables VARIABLE_VALUE 2 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema setup_actors HOST 1 % NO char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) PRI select,insert,update,references NULL NULL +def performance_schema setup_actors USER 2 % NO char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) PRI select,insert,update,references NULL NULL +def performance_schema setup_actors ROLE 3 % NO char 32 128 NULL NULL NULL utf8mb4 utf8mb4_bin char(32) PRI select,insert,update,references NULL NULL +def performance_schema setup_actors ENABLED 4 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_actors HISTORY 5 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_consumers NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema setup_consumers ENABLED 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_instruments NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema setup_instruments ENABLED 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_instruments TIMED 3 NULL YES enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_instruments PROPERTIES 4 NULL NO set 49 196 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci set('singleton','progress','user','global_statistics','mutable') select,insert,update,references NULL NULL +def performance_schema setup_instruments VOLATILITY 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema setup_instruments DOCUMENTATION 6 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema setup_objects OBJECT_TYPE 1 TABLE NO enum 9 36 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('EVENT','FUNCTION','PROCEDURE','TABLE','TRIGGER') MUL select,insert,update,references NULL NULL +def performance_schema setup_objects OBJECT_SCHEMA 2 % YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema setup_objects OBJECT_NAME 3 % NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema setup_objects ENABLED 4 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_objects TIMED 5 YES NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_threads NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema setup_threads ENABLED 2 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_threads HISTORY 3 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema setup_threads PROPERTIES 4 NULL NO set 14 56 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci set('singleton','user') select,insert,update,references NULL NULL +def performance_schema setup_threads VOLATILITY 5 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema setup_threads DOCUMENTATION 6 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema socket_instances EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema socket_instances OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema socket_instances THREAD_ID 3 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema socket_instances SOCKET_ID 4 NULL NO int NULL NULL 10 0 NULL NULL NULL int MUL select,insert,update,references NULL NULL +def performance_schema socket_instances IP 5 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema socket_instances PORT 6 NULL NO int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema socket_instances STATE 7 NULL NO enum 6 24 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('IDLE','ACTIVE') select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) PRI select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name COUNT_STAR 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name SUM_TIMER_WAIT 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MIN_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name AVG_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MAX_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name COUNT_READ 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name SUM_TIMER_READ 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MIN_TIMER_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name AVG_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MAX_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name SUM_NUMBER_OF_BYTES_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name COUNT_WRITE 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name SUM_TIMER_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MIN_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name AVG_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MAX_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name SUM_NUMBER_OF_BYTES_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name COUNT_MISC 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name SUM_TIMER_MISC 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MIN_TIMER_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name AVG_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_event_name MAX_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance EVENT_NAME 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance OBJECT_INSTANCE_BEGIN 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance COUNT_STAR 3 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance SUM_TIMER_WAIT 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MIN_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance AVG_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MAX_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance COUNT_READ 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance SUM_TIMER_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MIN_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance AVG_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MAX_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance SUM_NUMBER_OF_BYTES_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance COUNT_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance SUM_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MIN_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance AVG_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MAX_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance SUM_NUMBER_OF_BYTES_WRITE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance COUNT_MISC 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance SUM_TIMER_MISC 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MIN_TIMER_MISC 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance AVG_TIMER_MISC 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema socket_summary_by_instance MAX_TIMER_MISC 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema sql_findings SQL_ID 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema sql_findings CODE 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema sql_findings LEVEL 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema sql_findings MESSAGE 4 NULL YES varchar 512 2048 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(512) select,insert,update,references NULL NULL +def performance_schema sql_findings QUERY_TEXT 5 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema sql_findings COUNT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema sql_findings LAST_RECORDED 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema sql_text DIGEST 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) UNI select,insert,update,references NULL NULL +def performance_schema sql_text DIGEST_TEXT 2 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema status_by_account USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema status_by_account HOST 2 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema status_by_account VARIABLE_NAME 3 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema status_by_account VARIABLE_VALUE 4 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema status_by_host HOST 1 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) MUL select,insert,update,references NULL NULL +def performance_schema status_by_host VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema status_by_host VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema status_by_thread THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema status_by_thread VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema status_by_thread VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema status_by_user USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) MUL select,insert,update,references NULL NULL +def performance_schema status_by_user VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema status_by_user VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema table_handles OBJECT_TYPE 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema table_handles OBJECT_SCHEMA 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_handles OBJECT_NAME 3 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_handles OBJECT_INSTANCE_BEGIN 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema table_handles OWNER_THREAD_ID 5 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema table_handles OWNER_EVENT_ID 6 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_handles INTERNAL_LOCK 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_handles EXTERNAL_LOCK 8 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage INDEX_NAME 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_STAR 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_WAIT 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_READ 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_WRITE 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_FETCH 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_FETCH 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_FETCH 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_FETCH 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_FETCH 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_INSERT 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_INSERT 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_INSERT 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_INSERT 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_INSERT 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_UPDATE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_UPDATE 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_UPDATE 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_UPDATE 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_UPDATE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage COUNT_DELETE 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage SUM_TIMER_DELETE 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MIN_TIMER_DELETE 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage AVG_TIMER_DELETE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_index_usage MAX_TIMER_DELETE 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_FETCH 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_FETCH 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_FETCH 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_FETCH 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_FETCH 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_INSERT 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_INSERT 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_INSERT 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_INSERT 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_INSERT 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_UPDATE 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_UPDATE 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_UPDATE 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_UPDATE 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_UPDATE 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table COUNT_DELETE 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table SUM_TIMER_DELETE 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MIN_TIMER_DELETE 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table AVG_TIMER_DELETE 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_io_waits_summary_by_table MAX_TIMER_DELETE 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_STAR 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WAIT 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WAIT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WAIT 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WAIT 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_READ 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ 10 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ 11 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ 12 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ 13 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_WRITE 14 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE 15 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE 16 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE 17 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE 18 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_READ_NORMAL 19 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_NORMAL 20 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_NORMAL 21 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_NORMAL 22 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_NORMAL 23 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_READ_WITH_SHARED_LOCKS 24 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_WITH_SHARED_LOCKS 25 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_WITH_SHARED_LOCKS 26 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_WITH_SHARED_LOCKS 27 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_WITH_SHARED_LOCKS 28 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_READ_HIGH_PRIORITY 29 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_HIGH_PRIORITY 30 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_HIGH_PRIORITY 31 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_HIGH_PRIORITY 32 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_HIGH_PRIORITY 33 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_READ_NO_INSERT 34 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_NO_INSERT 35 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_NO_INSERT 36 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_NO_INSERT 37 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_NO_INSERT 38 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_READ_EXTERNAL 39 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_READ_EXTERNAL 40 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_READ_EXTERNAL 41 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_READ_EXTERNAL 42 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_READ_EXTERNAL 43 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_ALLOW_WRITE 44 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_ALLOW_WRITE 45 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_ALLOW_WRITE 46 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_ALLOW_WRITE 47 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_ALLOW_WRITE 48 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_CONCURRENT_INSERT 49 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_CONCURRENT_INSERT 50 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_CONCURRENT_INSERT 51 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_CONCURRENT_INSERT 52 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_CONCURRENT_INSERT 53 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_LOW_PRIORITY 54 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_LOW_PRIORITY 55 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_LOW_PRIORITY 56 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_LOW_PRIORITY 57 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_LOW_PRIORITY 58 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_NORMAL 59 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_NORMAL 60 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_NORMAL 61 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_NORMAL 62 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_NORMAL 63 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table COUNT_WRITE_EXTERNAL 64 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table SUM_TIMER_WRITE_EXTERNAL 65 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MIN_TIMER_WRITE_EXTERNAL 66 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table AVG_TIMER_WRITE_EXTERNAL 67 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_lock_waits_summary_by_table MAX_TIMER_WRITE_EXTERNAL 68 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table OBJECT_TYPE 1 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table OBJECT_SCHEMA 2 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table OBJECT_NAME 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table QUERIES_USED 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table EMPTY_QUERIES 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table IO_WRITE_BYTES 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table IO_WRITE_REQUESTS 7 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table IO_READ_BYTES 8 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema table_statistics_by_table IO_READ_REQUESTS 9 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema threads THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema threads NAME 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) MUL select,insert,update,references NULL NULL +def performance_schema threads TYPE 3 NULL NO varchar 10 40 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(10) select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_ID 4 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_USER 5 NULL YES varchar 80 320 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(80) MUL select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_HOST 6 NULL YES varchar 255 255 NULL NULL NULL ascii ascii_general_ci varchar(255) MUL select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_DB 7 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_COMMAND 8 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_TIME 9 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_STATE 10 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema threads PROCESSLIST_INFO 11 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci longtext select,insert,update,references NULL NULL +def performance_schema threads PARENT_THREAD_ID 12 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema threads ROLE 13 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema threads INSTRUMENTED 14 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema threads HISTORY 15 NULL NO enum 3 12 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('YES','NO') select,insert,update,references NULL NULL +def performance_schema threads CONNECTION_TYPE 16 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema threads THREAD_OS_ID 17 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned MUL select,insert,update,references NULL NULL +def performance_schema threads RESOURCE_GROUP 18 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) MUL select,insert,update,references NULL NULL +def performance_schema threads THREAD_PRIORITY 19 NULL YES int NULL NULL 10 0 NULL NULL NULL int select,insert,update,references NULL NULL +def performance_schema tls_channel_status CHANNEL 1 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema tls_channel_status PROPERTY 2 NULL NO varchar 128 512 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(128) select,insert,update,references NULL NULL +def performance_schema tls_channel_status VALUE 3 NULL NO varchar 2048 8192 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(2048) select,insert,update,references NULL NULL +def performance_schema users USER 1 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) UNI select,insert,update,references NULL NULL +def performance_schema users CURRENT_CONNECTIONS 2 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema users TOTAL_CONNECTIONS 3 NULL NO bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema user_defined_functions UDF_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema user_defined_functions UDF_RETURN_TYPE 2 NULL NO varchar 20 80 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(20) select,insert,update,references NULL NULL +def performance_schema user_defined_functions UDF_TYPE 3 NULL NO varchar 20 80 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(20) select,insert,update,references NULL NULL +def performance_schema user_defined_functions UDF_LIBRARY 4 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema user_defined_functions UDF_USAGE_COUNT 5 NULL YES bigint NULL NULL 19 0 NULL NULL NULL bigint select,insert,update,references NULL NULL +def performance_schema user_variables_by_thread THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema user_variables_by_thread VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema user_variables_by_thread VARIABLE_VALUE 3 NULL YES longblob 4294967295 4294967295 NULL NULL NULL NULL NULL longblob select,insert,update,references NULL NULL +def performance_schema variables_by_thread THREAD_ID 1 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned PRI select,insert,update,references NULL NULL +def performance_schema variables_by_thread VARIABLE_NAME 2 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) PRI select,insert,update,references NULL NULL +def performance_schema variables_by_thread VARIABLE_VALUE 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema variables_info VARIABLE_NAME 1 NULL NO varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema variables_info VARIABLE_SOURCE 2 COMPILED YES enum 12 48 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci enum('COMPILED','GLOBAL','SERVER','EXPLICIT','EXTRA','USER','LOGIN','COMMAND_LINE','PERSISTED','DYNAMIC') select,insert,update,references NULL NULL +def performance_schema variables_info VARIABLE_PATH 3 NULL YES varchar 1024 4096 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(1024) select,insert,update,references NULL NULL +def performance_schema variables_info MIN_VALUE 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema variables_info MAX_VALUE 5 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema variables_info SET_TIME 6 NULL YES timestamp NULL NULL NULL NULL 6 NULL NULL timestamp(6) select,insert,update,references NULL NULL +def performance_schema variables_info SET_USER 7 NULL YES char 80 320 NULL NULL NULL utf8mb4 utf8mb4_bin char(80) select,insert,update,references NULL NULL +def performance_schema variables_info SET_HOST 8 NULL YES char 255 255 NULL NULL NULL ascii ascii_general_ci char(255) select,insert,update,references NULL NULL +def performance_schema write_statistics TIMESTAMP 1 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema write_statistics TYPE 2 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema write_statistics VALUE 3 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema write_statistics WRITE_DATA_BYTES 4 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema write_statistics CPU_WRITE_TIME_MS 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema write_throttling_log MODE 1 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema write_throttling_log CREATION_TIME 2 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema write_throttling_log TYPE 3 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema write_throttling_log VALUE 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema write_throttling_log TRANSACTION_TYPE 5 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema write_throttling_log COUNT 6 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL +def performance_schema write_throttling_rules MODE 1 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema write_throttling_rules CREATION_TIME 2 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL 0 NULL NULL timestamp select,insert,update,references NULL NULL +def performance_schema write_throttling_rules TYPE 3 NULL YES varchar 16 64 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(16) select,insert,update,references NULL NULL +def performance_schema write_throttling_rules VALUE 4 NULL YES varchar 64 256 NULL NULL NULL utf8mb4 utf8mb4_0900_ai_ci varchar(64) select,insert,update,references NULL NULL +def performance_schema write_throttling_rules THROTTLE_RATE 5 NULL NO bigint NULL NULL 20 0 NULL NULL NULL bigint unsigned select,insert,update,references NULL NULL select count(*) from information_schema.columns where table_schema="performance_schema" and data_type = "bigint" and column_name like "%number_of_bytes" into @count_byte_columns; diff --git a/mysql-test/suite/perfschema/t/esms_by_all.test b/mysql-test/suite/perfschema/t/esms_by_all.test index 01d8da5b1ef6..7b539d5606bc 100644 --- a/mysql-test/suite/perfschema/t/esms_by_all.test +++ b/mysql-test/suite/perfschema/t/esms_by_all.test @@ -215,7 +215,8 @@ CHECK_TIME datetime TABLE_COLLATION varchar(64) , CHECKSUM bigint , CREATE_OPTIONS varchar(256) , -TABLE_COMMENT text ); +TABLE_COMMENT text , +TABLE_SE_PRIVATE_DATA text); insert into tables select * from information_schema.tables; insert into tables select * from tables; diff --git a/mysql-test/suite/rocksdb/r/instant_add_column_basic.result b/mysql-test/suite/rocksdb/r/instant_add_column_basic.result index 9e17c22b88a1..91f0f84a2057 100644 --- a/mysql-test/suite/rocksdb/r/instant_add_column_basic.result +++ b/mysql-test/suite/rocksdb/r/instant_add_column_basic.result @@ -551,7 +551,7 @@ UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; ALTER TABLE t1 ADD KEY(e); EXPLAIN SELECT e FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t1 NULL index NULL e # NULL # 100.00 Using index +1 SIMPLE t1 NULL index NULL e # NULL # # Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`e` AS `e` from `test`.`t1` SELECT count(e) FROM t1 WHERE e LIKE '%MySQL%'; diff --git a/mysql-test/suite/rocksdb/t/instant_add_column_basic.test b/mysql-test/suite/rocksdb/t/instant_add_column_basic.test index d466b03f3de9..4b8d5e0c9f8c 100644 --- a/mysql-test/suite/rocksdb/t/instant_add_column_basic.test +++ b/mysql-test/suite/rocksdb/t/instant_add_column_basic.test @@ -354,7 +354,7 @@ UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; ALTER TABLE t1 ADD KEY(e); # Replace the numbers in the output with '#' to stablize the result, after all we only care about the index picked. ---replace_column 8 # 10 # +--replace_column 8 # 10 # 11 # EXPLAIN SELECT e FROM t1; SELECT count(e) FROM t1 WHERE e LIKE '%MySQL%'; SELECT count(e) FROM t1 WHERE e LIKE '%world%'; diff --git a/mysql-test/suite/thread_pool/r/table_plugin_in_use.result b/mysql-test/suite/thread_pool/r/table_plugin_in_use.result index fb6a8a07d3a6..8c91a07f40dd 100644 --- a/mysql-test/suite/thread_pool/r/table_plugin_in_use.result +++ b/mysql-test/suite/thread_pool/r/table_plugin_in_use.result @@ -7,7 +7,7 @@ set ENABLED = "YES", TIMED = "YES" FLUSH TABLES; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -119,7 +119,7 @@ where name like 'pfs_example_%'; name select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; @@ -276,7 +276,7 @@ EMPLOYEE_NUMBER FIRST_NAME LAST_NAME UNINSTALL PLUGIN pfs_example_plugin_employee; select * from INFORMATION_SCHEMA.tables where TABLE_NAME like "pfs_example_%"; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT TABLE_SE_PRIVATE_DATA describe performance_schema.pfs_example_employee_name; ERROR 42S02: Table 'performance_schema.pfs_example_employee_name' doesn't exist show create table performance_schema.pfs_example_employee_name; diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 491b8cc8cb82..a02b971d08f5 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -2248,6 +2248,7 @@ DROP PROCEDURE p1; CREATE TABLE t1(a BOOLEAN, b TINYINT(1), c TINYINT(1) UNSIGNED, d TINYINT(1) ZEROFILL); SHOW CREATE TABLE t1; --sorted_result +--replace_column 23 # SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; DESCRIBE t1; diff --git a/mysql-test/t/information_schema_cs.test b/mysql-test/t/information_schema_cs.test index 8a93f7550355..fb16cd2c900f 100644 --- a/mysql-test/t/information_schema_cs.test +++ b/mysql-test/t/information_schema_cs.test @@ -92,6 +92,7 @@ show full columns from t3 like "a%"; show full columns from mysql.db like "Insert%"; --replace_result utf8_tolower_ci utf8_bin show full columns from v1; +--replace_column 23 # select * from information_schema.COLUMNS where table_name="t1" and column_name= "a" order by table_name; show columns from mysqltest.t1 where field like "%a%"; diff --git a/mysql-test/t/type_temporal_fractional.test b/mysql-test/t/type_temporal_fractional.test index d33f00a1264b..b8ae93aaca1c 100644 --- a/mysql-test/t/type_temporal_fractional.test +++ b/mysql-test/t/type_temporal_fractional.test @@ -1936,7 +1936,7 @@ DELIMITER ;// --echo # Testing INFORMATION_SCHEMA.COLUMNS --echo # CREATE TABLE t1 (a TIME(6)); ---replace_column 19 # +--replace_column 19 # 23 # --query_vertical SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1'; DROP TABLE t1; @@ -3894,7 +3894,7 @@ DELIMITER ;// --echo # Testing INFORMATION_SCHEMA.COLUMNS --echo # CREATE TABLE t1 (a DATETIME(6)); ---replace_column 19 # +--replace_column 19 # 23 # --query_vertical SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1'; DROP TABLE t1; @@ -5691,7 +5691,7 @@ DELIMITER ;// --echo # Testing INFORMATION_SCHEMA.COLUMNS --echo # CREATE TABLE t1 (a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)); ---replace_column 19 # +--replace_column 19 # 23 # --query_vertical SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1'; DROP TABLE t1; diff --git a/sql/dd/impl/system_views/columns.cc b/sql/dd/impl/system_views/columns.cc index 87d5dd9e829c..e442223f1617 100644 --- a/sql/dd/impl/system_views/columns.cc +++ b/sql/dd/impl/system_views/columns.cc @@ -120,6 +120,8 @@ Columns::Columns() { m_target_def.add_field(FIELD_GENERATION_EXPRESSION, "GENERATION_EXPRESSION", "IFNULL(col.generation_expression_utf8, '')"); m_target_def.add_field(FIELD_SRS_ID, "SRS_ID", "col.srs_id"); + m_target_def.add_field(FIELD_SE_PRIVATE_DATA, "COLUMN_SE_PRIVATE_DATA", + "col.se_private_data"); m_target_def.add_from("mysql.columns col"); m_target_def.add_from("JOIN mysql.tables tbl ON col.table_id=tbl.id"); diff --git a/sql/dd/impl/system_views/columns.h b/sql/dd/impl/system_views/columns.h index fc7bfcd20fd7..47c990fa9b15 100644 --- a/sql/dd/impl/system_views/columns.h +++ b/sql/dd/impl/system_views/columns.h @@ -57,7 +57,8 @@ class Columns : public System_view_impl { FIELD_PRIVILEGES, FIELD_COLUMN_COMMENT, FIELD_GENERATION_EXPRESSION, - FIELD_SRS_ID + FIELD_SRS_ID, + FIELD_SE_PRIVATE_DATA }; Columns(); diff --git a/sql/dd/impl/system_views/tables.cc b/sql/dd/impl/system_views/tables.cc index 9a9adda62170..01c716e2e54d 100644 --- a/sql/dd/impl/system_views/tables.cc +++ b/sql/dd/impl/system_views/tables.cc @@ -61,6 +61,8 @@ Tables_base::Tables_base() { FIELD_TABLE_COMMENT, "TABLE_COMMENT", "INTERNAL_GET_COMMENT_OR_ERROR(sch.name, tbl.name, tbl.type, " "tbl.options, tbl.comment)"); + m_target_def.add_field(FIELD_SE_PRIVATE_DATA, "TABLE_SE_PRIVATE_DATA", + "tbl.se_private_data"); m_target_def.add_from("mysql.tables tbl"); m_target_def.add_from("JOIN mysql.schemata sch ON tbl.schema_id=sch.id"); diff --git a/sql/dd/impl/system_views/tables.h b/sql/dd/impl/system_views/tables.h index 61ca0e44d14c..cc1dbf7f188b 100644 --- a/sql/dd/impl/system_views/tables.h +++ b/sql/dd/impl/system_views/tables.h @@ -57,7 +57,8 @@ class Tables_base FIELD_TABLE_COLLATION, FIELD_CHECKSUM, FIELD_CREATE_OPTIONS, - FIELD_TABLE_COMMENT + FIELD_TABLE_COMMENT, + FIELD_SE_PRIVATE_DATA }; Tables_base(); diff --git a/sql/dd/info_schema/metadata.h b/sql/dd/info_schema/metadata.h index 3bb56672c5d3..568b7a795b92 100644 --- a/sql/dd/info_schema/metadata.h +++ b/sql/dd/info_schema/metadata.h @@ -215,13 +215,17 @@ namespace info_schema { 80023-003: - Fixed the sys view to rely on performance_schema default collation + 80023-004: + - Add SE_PRIVATE_DATA to INFORMATION_SCHEMA.TABLES and + INFORMATION_SCHEMA.COLUMNS + 80024: Next IS version number after the previous is public. ------------------------------------ */ -static const uint IS_DD_VERSION = 80023003; +static const uint IS_DD_VERSION = 80023004; static_assert((IS_DD_VERSION <= MYSQL_VERSION_ID) || - ((IS_DD_VERSION == 80023003) && (MYSQL_VERSION_ID >= 80023)), + ((IS_DD_VERSION == 80023004) && (MYSQL_VERSION_ID >= 80023)), "This release can not use a version number from the future"); /** From 2549a070cc49fa101007bd30edad14e34c39100d Mon Sep 17 00:00:00 2001 From: "Jupyung Lee (JP)" Date: Thu, 26 May 2022 00:57:15 -0700 Subject: [PATCH 14/17] add more mtr test for bypass rpc and fix bugs Summary: This diff ports other existing mtr tests for bypass sql, bypass_select_range_pk, bypass_select_range_sk, bypass_select_scenarios, bypass_select_unsupported, to bypass rpc, excluding some test queries that are not relevant to bypass rpc. Also, the following changes were made in nosql_access.cc * Fixed a bug for a case where unrequested columns are included in the where clause. The correct index pointer to be used was m_field_list.size(), not m_field_index.size(). * Fixed a bug when calculating the length of blob field data in rpc_protocol. The correct one was field_blob->data_length(), not field_blob->get_length_bytes(). * Added support for MYSQL_TYPE_STRING type * Made bypass rpc return the exact same error message with bypass sql when returning "not supported" error. This will be necessary for running bypass_rpc_unsupported test. Finally, the following changes were made in the test plugin: * Added support for parsing where clause in which its value type is string * Added the implementation of sql_handle_error() to output the error message. Reviewed By: yizhang82 Differential Revision: D36695567 fbshipit-source-id: e0e114ba4c7f369cb969bb60fd60b5c2296a4912 --- .../rocksdb/r/bypass_rpc_range_pk.result | 98 +++++++ .../rocksdb/r/bypass_rpc_range_sk.result | 98 +++++++ .../rocksdb/r/bypass_rpc_scenarios.result | 236 +++++++++++++++++ .../rocksdb/r/bypass_rpc_unsupported.result | 19 ++ .../suite/rocksdb/t/bypass_rpc_basic.test | 2 + .../rocksdb/t/bypass_rpc_range_pk-master.opt | 1 + .../suite/rocksdb/t/bypass_rpc_range_pk.test | 237 +++++++++++++++++ .../rocksdb/t/bypass_rpc_range_sk-master.opt | 1 + .../suite/rocksdb/t/bypass_rpc_range_sk.test | 241 ++++++++++++++++++ .../rocksdb/t/bypass_rpc_scenarios-master.opt | 1 + .../suite/rocksdb/t/bypass_rpc_scenarios.test | 199 +++++++++++++++ .../t/bypass_rpc_unsupported-master.opt | 1 + .../rocksdb/t/bypass_rpc_unsupported.test | 65 +++++ .../test_bypass_rpc_plugin_info.cc | 37 ++- storage/rocksdb/nosql_access.cc | 30 ++- 15 files changed, 1257 insertions(+), 9 deletions(-) create mode 100644 mysql-test/suite/rocksdb/r/bypass_rpc_range_pk.result create mode 100644 mysql-test/suite/rocksdb/r/bypass_rpc_range_sk.result create mode 100644 mysql-test/suite/rocksdb/r/bypass_rpc_scenarios.result create mode 100644 mysql-test/suite/rocksdb/r/bypass_rpc_unsupported.result create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_range_pk-master.opt create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_range_pk.test create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_range_sk-master.opt create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_range_sk.test create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_scenarios-master.opt create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_scenarios.test create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_unsupported-master.opt create mode 100644 mysql-test/suite/rocksdb/t/bypass_rpc_unsupported.test diff --git a/mysql-test/suite/rocksdb/r/bypass_rpc_range_pk.result b/mysql-test/suite/rocksdb/r/bypass_rpc_range_pk.result new file mode 100644 index 000000000000..c2c3411c626d --- /dev/null +++ b/mysql-test/suite/rocksdb/r/bypass_rpc_range_pk.result @@ -0,0 +1,98 @@ +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME 'TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; diff --git a/mysql-test/suite/rocksdb/r/bypass_rpc_range_sk.result b/mysql-test/suite/rocksdb/r/bypass_rpc_range_sk.result new file mode 100644 index 000000000000..c2c3411c626d --- /dev/null +++ b/mysql-test/suite/rocksdb/r/bypass_rpc_range_sk.result @@ -0,0 +1,98 @@ +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME 'TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; diff --git a/mysql-test/suite/rocksdb/r/bypass_rpc_scenarios.result b/mysql-test/suite/rocksdb/r/bypass_rpc_scenarios.result new file mode 100644 index 000000000000..60b9905b9a51 --- /dev/null +++ b/mysql-test/suite/rocksdb/r/bypass_rpc_scenarios.result @@ -0,0 +1,236 @@ +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +# Bloom filter with complete SK but shorter than bloom filter +CREATE TABLE `id_table_bloom` ( +`id1` bigint(20) NOT NULL DEFAULT '0', +`id2` bigint(20) NOT NULL DEFAULT '0', +`id3` bigint(11) NOT NULL DEFAULT '0', +`val` bigint(20) NOT NULL DEFAULT '0', +PRIMARY KEY (`id1`, `id2`), +KEY `id3` (`id3`) COMMENT 'cf_link', +UNIQUE KEY `unique_id3` (`id3`) COMMENT 'cf_link' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED +KEY_BLOCK_SIZE=8; +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +INSERT INTO id_table_bloom values (1, 1, 1, 101); +INSERT INTO id_table_bloom values (1, 2, 2, 102); +INSERT INTO id_table_bloom values (1, 3, 3, 103); +INSERT INTO id_table_bloom values (1, 4, 4, 104); +CREATE TABLE `link_table7` ( +`id1` bigint(20) unsigned NOT NULL DEFAULT '0' , +`id1_type` int(10) unsigned NOT NULL DEFAULT '0' , +`id2` bigint(20) unsigned NOT NULL DEFAULT '0' , +`id2_type` int(10) unsigned NOT NULL DEFAULT '0' , +`link_type` bigint(20) unsigned NOT NULL DEFAULT '0' , +`visibility` tinyint(3) NOT NULL DEFAULT '0' , +`data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '' , +`time` int(10) unsigned NOT NULL DEFAULT '0' , +`version` bigint(20) unsigned NOT NULL DEFAULT '0' , +PRIMARY KEY (`link_type` , `id1` , `id2`) COMMENT 'cf_link' , +KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`) +COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +insert into link_table7 values (9223372036854775807, 100, 9223372036854775801, +100, 9223372036854775807, 0, +'data1', 1234561, 9223372036854775801); +insert into link_table7 values (9223372036854775807, 100, 1223372036854775802, +100, 9223372036854775807, 0, +'0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890', 1234562, 9223372036854775802); +insert into link_table7 values (9223372036854775807, 100, 1223372036854775803, +100, 9223372036854775807, 0, +'0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890', 1234563, 9223372036854775803); +CREATE TABLE `link_table8` ( +`id1` bigint(20) unsigned NOT NULL DEFAULT '0' , +`id1_type` int(10) unsigned NOT NULL DEFAULT '0' , +`id2` bigint(20) unsigned NOT NULL DEFAULT '0' , +`id2_type` int(10) unsigned NOT NULL DEFAULT '0' , +`link_type` bigint(20) unsigned NOT NULL DEFAULT '0' , +`visibility` tinyint(3) NOT NULL DEFAULT '0' , +`data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '' , +`time` int(10) unsigned NOT NULL DEFAULT '0' , +`version` bigint(20) unsigned NOT NULL DEFAULT '0' , +PRIMARY KEY (`link_type` , `id1` , `id2`) COMMENT 'cf_link' , +KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`) +COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +insert into link_table8 values (1, 0x03030303, 1, 0, 100, 0, 'data1', 0, 0); +CREATE TABLE `meta_table` ( +`lvid` int(10) unsigned NOT NULL DEFAULT '0', +`mt_object_type` int(10) unsigned NOT NULL DEFAULT '0', +`id` bigint(20) unsigned NOT NULL DEFAULT '0', +`mt_object_cookie` bigint(20) unsigned NOT NULL DEFAULT '0', +`mt_alt_key_data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '', +`mt_total_size` bigint(20) unsigned NOT NULL DEFAULT '0', +`mt_object_type2` int(10) unsigned NOT NULL DEFAULT '0', +`mt_object_state` smallint(5) unsigned NOT NULL DEFAULT '0', +`context` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '', +`mt_ref` bigint(20) DEFAULT NULL, +`mt_key` varbinary(80) DEFAULT NULL, +`mt_ctime` int(10) NOT NULL DEFAULT '0', +`mt_rtime` int(10) NOT NULL DEFAULT '0', +`policy_id` tinyint(3) unsigned DEFAULT NULL, +`policy` bigint(20) unsigned DEFAULT NULL, +`parent_id` bigint(20) unsigned NOT NULL DEFAULT '0', +`ttl` int(10) DEFAULT NULL, +`mt_last_update` int(10) unsigned NOT NULL DEFAULT '0', +PRIMARY KEY (`lvid`,`id`), +KEY `key1` (`lvid`,`mt_object_state`,`mt_key`(1)), +KEY `key2` (`lvid`,`mt_last_update`) +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +Warnings: +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +Warning 1681 Integer display width is deprecated and will be removed in a future release. +INSERT INTO meta_table VALUES (100, 0, 1, 0, 'data1', 1, 2, 3, 'context1', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (100, 0, 2, 0, 'data2', 1, 2, 3, 'context2', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (100, 0, 3, 0, 'data3', 1, 2, 3, 'context3', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (100, 0, 4, 0, 'data4', 1, 2, 3, 'context4', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (101, 0, 1, 0, 'data1', 1, 2, 3, 'context1', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME 'TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; +DROP TABLE id_table_bloom; +DROP TABLE link_table7; +DROP TABLE link_table8; +DROP TABLE meta_table; diff --git a/mysql-test/suite/rocksdb/r/bypass_rpc_unsupported.result b/mysql-test/suite/rocksdb/r/bypass_rpc_unsupported.result new file mode 100644 index 000000000000..c3f525b7cffa --- /dev/null +++ b/mysql-test/suite/rocksdb/r/bypass_rpc_unsupported.result @@ -0,0 +1,19 @@ +SELECT @@rocksdb_select_bypass_policy into @save_rocksdb_select_bypass_policy; +SET GLOBAL rocksdb_select_bypass_policy=2; +SELECT @@rocksdb_select_bypass_allow_filters into @save_rocksdb_select_bypass_allow_filters; +SET GLOBAL rocksdb_select_bypass_allow_filters=0; +create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; +create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; +INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME 'TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; +set global rocksdb_select_bypass_allow_filters=@save_rocksdb_select_bypass_allow_filters; +set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; +drop table t1; +drop table t2; +drop table t3; +drop table t4; diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test b/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test index f3b608c3cfad..0ab1c98d62fa 100644 --- a/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_basic.test @@ -1,3 +1,5 @@ +--source include/have_rocksdb.inc + --let $MYSQLD_DATADIR= `select @@datadir` --replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN --replace_result $MYSQLD_DATADIR MYSQLD_DATADIR diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_range_pk-master.opt b/mysql-test/suite/rocksdb/t/bypass_rpc_range_pk-master.opt new file mode 100644 index 000000000000..cb00a561fc1a --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_range_pk-master.opt @@ -0,0 +1 @@ +$TEST_BYPASS_RPC_PLUGIN_OPT diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_range_pk.test b/mysql-test/suite/rocksdb/t/bypass_rpc_range_pk.test new file mode 100644 index 000000000000..3ffd10b8c26f --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_range_pk.test @@ -0,0 +1,237 @@ +--source include/have_rocksdb.inc + +--let $MYSQLD_DATADIR= `select @@datadir` +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR +--source ../include/bypass_create_table.inc + +--write_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt +# Range query, PRIMARY KEY, forward column family + Ascending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 ORDER BY id1 ASC, id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND time=1 ORDER BY id1 ASC, id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE time=1 ORDER BY link_type ASC, id1 ASC, id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<1 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>4 AND id2<3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<=4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 AND id2<=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1=2 AND id2>=0 AND id2<6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 AND id1<100 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 AND id1<100 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 AND id1>=0 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=2 AND id1>=0 ORDER BY id1 ASC LIMIT 1000; +# Range query, PRIMARY KEY, forward column family + Descending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 ORDER BY id1 DESC, id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND time=1 ORDER BY id1 DESC, id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE time=1 ORDER BY link_type DESC, id1 DESC, id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<1 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>4 AND id2<3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<=4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 AND id2<=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1=2 AND id2>=0 AND id2<6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 AND id1<100 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 AND id1<100 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 AND id1>=0 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5 FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=2 AND id1>=0 ORDER BY id1 DESC LIMIT 1000; +# Range query, PRIMARY KEY, reverse column family + Ascending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 ORDER BY id1 ASC, id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND time=1 ORDER BY id1 ASC, id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE time=1 ORDER BY link_type ASC, id1 ASC, id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=0 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=1 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=2 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<1 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>4 AND id2<3 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<=4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<=5 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 AND id2<=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<=6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1=2 AND id2>=0 AND id2<6 ORDER BY id2 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 AND id1<100 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 AND id1<100 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 AND id1>=0 ORDER BY id1 ASC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=2 AND id1>=0 ORDER BY id1 ASC LIMIT 1000; +# Range query, PRIMARY KEY, backward column family + Descending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=1 AND visibility=3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND visibility=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 ORDER BY id1 DESC, id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND time=1 ORDER BY id1 DESC, id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE time=1 ORDER BY link_type DESC, id1 DESC, id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=0 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=1 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=2 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2<6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<1 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>4 AND id2<3 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<=4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=3 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>3 AND id2<4 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=1 AND id2<5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>1 AND id2<=5 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>=0 AND id2<=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=1 AND id1=2 AND id2>0 AND id2<=6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1=2 AND id2>=0 AND id2<6 ORDER BY id2 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>1 AND id1<100 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=2 AND id1>=2 AND id1<100 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=1 AND id1>=0 ORDER BY id1 DESC LIMIT 1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table5_rev FORCE INDEX (PRIMARY) WHERE link_type=0 AND id1<=2 AND id1>=0 ORDER BY id1 DESC LIMIT 1000; +EOF + +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +eval INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME '$TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; + +--diff_files $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result + +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt + +--source ../include/bypass_drop_table.inc diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_range_sk-master.opt b/mysql-test/suite/rocksdb/t/bypass_rpc_range_sk-master.opt new file mode 100644 index 000000000000..cb00a561fc1a --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_range_sk-master.opt @@ -0,0 +1 @@ +$TEST_BYPASS_RPC_PLUGIN_OPT diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_range_sk.test b/mysql-test/suite/rocksdb/t/bypass_rpc_range_sk.test new file mode 100644 index 000000000000..9463d227a224 --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_range_sk.test @@ -0,0 +1,241 @@ +--source include/have_rocksdb.inc + +--let $MYSQLD_DATADIR= `select @@datadir` +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR +--source ../include/bypass_create_table.inc + +--write_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt +# Range query, SECONDARY KEY, Reverse Column family + ascending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=0 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>0 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=8 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type ASC, visibility ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table FORCE INDEX (id1_type) WHERE id1=1 AND TIME=12 ORDER BY link_type ASC, visibility ASC, time ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table FORCE INDEX (id1_type) WHERE TIME=12 ORDER BY id1 ASC, link_type ASC, visibility ASC, time ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 ORDER BY visibility ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type ASC, visibility ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +# Range query, SECONDARY KEY, Reverse Column family + descending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=0 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>0 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=8 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type DESC, visibility DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table FORCE INDEX (id1_type) WHERE id1=1 AND TIME=12 ORDER BY link_type DESC, visibility DESC, time DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table FORCE INDEX (id1_type) WHERE TIME=12 ORDER BY id1 DESC, link_type DESC, visibility DESC, time DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 ORDER BY visibility DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type DESC, visibility DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +# Range query, SECONDARY KEY, Forward Column family + ascending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=0 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>0 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=8 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type ASC, visibility ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table2 FORCE INDEX (id1_type) WHERE id1=1 AND TIME=12 ORDER BY link_type ASC, visibility ASC, time ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table2 FORCE INDEX (id1_type) WHERE TIME=12 ORDER BY id1 ASC, link_type ASC, visibility ASC, time ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 ORDER BY visibility ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type ASC, visibility ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=15 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=16 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=9 ORDER BY TIME ASC, id2 ASC LIMIT 0,1000; +# Range query, SECONDARY KEY, Forward Column family + descending +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=0 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>0 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=8 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type DESC, visibility DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table2 FORCE INDEX (id1_type) WHERE id1=1 AND TIME=12 ORDER BY link_type DESC, visibility DESC, time DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data FROM test.link_table2 FORCE INDEX (id1_type) WHERE TIME=12 ORDER BY id1 DESC, link_type DESC, visibility DESC, time DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=3 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=12 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 AND TIME<=11 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=7 AND TIME<=8 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=1 ORDER BY visibility DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE id1=1 ORDER BY link_type DESC, visibility DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=15 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=10 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>=9 AND TIME<16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=16 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>10 AND TIME<=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,TIME,version FROM test.link_table2 FORCE INDEX (id1_type) WHERE link_type=3 AND id1=3 AND visibility=4 AND TIME>9 AND TIME<=9 ORDER BY TIME DESC, id2 DESC LIMIT 0,1000; +EOF + +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +eval INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME '$TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; + +--diff_files $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result + +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt + +--source ../include/bypass_drop_table.inc diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_scenarios-master.opt b/mysql-test/suite/rocksdb/t/bypass_rpc_scenarios-master.opt new file mode 100644 index 000000000000..cb00a561fc1a --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_scenarios-master.opt @@ -0,0 +1 @@ +$TEST_BYPASS_RPC_PLUGIN_OPT diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_scenarios.test b/mysql-test/suite/rocksdb/t/bypass_rpc_scenarios.test new file mode 100644 index 000000000000..148718339d9c --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_scenarios.test @@ -0,0 +1,199 @@ +--source include/have_rocksdb.inc + +--let $MYSQLD_DATADIR= `select @@datadir` +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR +--source ../include/bypass_create_table.inc + +--echo # Bloom filter with complete SK but shorter than bloom filter +CREATE TABLE `id_table_bloom` ( + `id1` bigint(20) NOT NULL DEFAULT '0', + `id2` bigint(20) NOT NULL DEFAULT '0', + `id3` bigint(11) NOT NULL DEFAULT '0', + `val` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`id1`, `id2`), + KEY `id3` (`id3`) COMMENT 'cf_link', + UNIQUE KEY `unique_id3` (`id3`) COMMENT 'cf_link' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED +KEY_BLOCK_SIZE=8; + +INSERT INTO id_table_bloom values (1, 1, 1, 101); +INSERT INTO id_table_bloom values (1, 2, 2, 102); +INSERT INTO id_table_bloom values (1, 3, 3, 103); +INSERT INTO id_table_bloom values (1, 4, 4, 104); + +CREATE TABLE `link_table7` ( + `id1` bigint(20) unsigned NOT NULL DEFAULT '0' , + `id1_type` int(10) unsigned NOT NULL DEFAULT '0' , + `id2` bigint(20) unsigned NOT NULL DEFAULT '0' , + `id2_type` int(10) unsigned NOT NULL DEFAULT '0' , + `link_type` bigint(20) unsigned NOT NULL DEFAULT '0' , + `visibility` tinyint(3) NOT NULL DEFAULT '0' , + `data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '' , + `time` int(10) unsigned NOT NULL DEFAULT '0' , + `version` bigint(20) unsigned NOT NULL DEFAULT '0' , + PRIMARY KEY (`link_type` , `id1` , `id2`) COMMENT 'cf_link' , + KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`) + COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +insert into link_table7 values (9223372036854775807, 100, 9223372036854775801, + 100, 9223372036854775807, 0, + 'data1', 1234561, 9223372036854775801); +insert into link_table7 values (9223372036854775807, 100, 1223372036854775802, + 100, 9223372036854775807, 0, + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890', 1234562, 9223372036854775802); +insert into link_table7 values (9223372036854775807, 100, 1223372036854775803, + 100, 9223372036854775807, 0, + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890123456789012345678901234567890123456789' + '0123456789012345678901234567890', 1234563, 9223372036854775803); + +CREATE TABLE `link_table8` ( + `id1` bigint(20) unsigned NOT NULL DEFAULT '0' , + `id1_type` int(10) unsigned NOT NULL DEFAULT '0' , + `id2` bigint(20) unsigned NOT NULL DEFAULT '0' , + `id2_type` int(10) unsigned NOT NULL DEFAULT '0' , + `link_type` bigint(20) unsigned NOT NULL DEFAULT '0' , + `visibility` tinyint(3) NOT NULL DEFAULT '0' , + `data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '' , + `time` int(10) unsigned NOT NULL DEFAULT '0' , + `version` bigint(20) unsigned NOT NULL DEFAULT '0' , + PRIMARY KEY (`link_type` , `id1` , `id2`) COMMENT 'cf_link' , + KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`) + COMMENT 'rev:cf_link_id1_type' +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; +insert into link_table8 values (1, 0x03030303, 1, 0, 100, 0, 'data1', 0, 0); + +CREATE TABLE `meta_table` ( + `lvid` int(10) unsigned NOT NULL DEFAULT '0', + `mt_object_type` int(10) unsigned NOT NULL DEFAULT '0', + `id` bigint(20) unsigned NOT NULL DEFAULT '0', + `mt_object_cookie` bigint(20) unsigned NOT NULL DEFAULT '0', + `mt_alt_key_data` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '', + `mt_total_size` bigint(20) unsigned NOT NULL DEFAULT '0', + `mt_object_type2` int(10) unsigned NOT NULL DEFAULT '0', + `mt_object_state` smallint(5) unsigned NOT NULL DEFAULT '0', + `context` varchar(255) COLLATE latin1_bin NOT NULL DEFAULT '', + `mt_ref` bigint(20) DEFAULT NULL, + `mt_key` varbinary(80) DEFAULT NULL, + `mt_ctime` int(10) NOT NULL DEFAULT '0', + `mt_rtime` int(10) NOT NULL DEFAULT '0', + `policy_id` tinyint(3) unsigned DEFAULT NULL, + `policy` bigint(20) unsigned DEFAULT NULL, + `parent_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `ttl` int(10) DEFAULT NULL, + `mt_last_update` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`lvid`,`id`), + KEY `key1` (`lvid`,`mt_object_state`,`mt_key`(1)), + KEY `key2` (`lvid`,`mt_last_update`) +) ENGINE=ROCKSDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin +ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; + +INSERT INTO meta_table VALUES (100, 0, 1, 0, 'data1', 1, 2, 3, 'context1', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (100, 0, 2, 0, 'data2', 1, 2, 3, 'context2', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (100, 0, 3, 0, 'data3', 1, 2, 3, 'context3', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (100, 0, 4, 0, 'data4', 1, 2, 3, 'context4', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); +INSERT INTO meta_table VALUES (101, 0, 1, 0, 'data1', 1, 2, 3, 'context1', +1, 0x1, 1, 1, 1, 1, 1, 0, 0); + + +--write_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt +# Bloom filter with complete SK but shorter than bloom filter +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (unique_id3) WHERE id3=1; +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (id3) WHERE id3=1; +# Range query with full PK+SK +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (unique_id3) WHERE id3=1 AND id1=1; +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (unique_id3) WHERE id3=1 AND id1=1 AND id2=1; +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (unique_id3) WHERE id3=1 AND id1=1 AND id2>=1; +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (id3) WHERE id3=1 AND id1=1; +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (id3) WHERE id3=1 AND id1=1 AND id2=1; +SELECT /*+ bypass */ val FROM test.id_table_bloom FORCE INDEX (id3) WHERE id3=1 AND id1=1 AND id2>=1; +# Point query, with node_table +SELECT /*+ bypass */ id,type,version,update_time,data FROM test.node_table FORCE INDEX (PRIMARY) WHERE id IN (1,2,3,4,5) AND type=1 ORDER BY type ASC, id ASC; +SELECT /*+ bypass */ id,type,version,update_time,data FROM test.node_table FORCE INDEX (PRIMARY) WHERE id IN (1) AND type=1; +SELECT /*+ bypass */ id,type,version,update_time,data FROM test.node_table FORCE INDEX (PRIMARY) WHERE id=2 AND type=1 ORDER BY type ASC, id ASC; +# Point query, with id_table +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (PRIMARY) WHERE id IN (1,2,3,4,5) ORDER BY id ASC; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (PRIMARY) WHERE id IN (1) ORDER BY id ASC; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (PRIMARY) WHERE id=1 ORDER BY id ASC; +# Point query, with id_table SK +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (type_id) WHERE type=1 and id=2; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (type_id) WHERE type=1 and id=1; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (type_id) WHERE type=1 and id=10; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (type_id) WHERE type=1 and id=11; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (type_id) WHERE type=1 and id=0; +# Point query, with id_table unique SK +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (unique_type_id) WHERE type=1 and id=2; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (unique_type_id) WHERE type=1 and id=1; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (unique_type_id) WHERE type=1 and id=10; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (unique_type_id) WHERE type=1 and id=11; +SELECT /*+ bypass */ id,type,row_created_time,is_deleted FROM test.id_table FORCE INDEX (unique_type_id) WHERE type=1 and id=0; +# Point query, with count_table +SELECT /*+ bypass */ id,type,link_type,count,TIME,version FROM test.count_table WHERE id=2 AND link_type=1; +# pk_unpack_buf unassigned when unpack_pk=false and unpack_value=true +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table3 FORCE INDEX (id1_type) WHERE link_type=1 AND id1=1 AND visibility=1 AND time>=0 AND time<=4294967295 ORDER BY time DESC, id2 DESC LIMIT 0,10000; +# Partial keys should not be unpacked +SELECT /*+ bypass */ data FROM test.link_table6 FORCE INDEX (id1_type) where id1=1; +# time >= ONLY crashes +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=1 AND id1=1 AND visibility=0 AND time>=1551074583 AND time>=0 AND time<=4294967295 ORDER BY time DESC, id2 DESC LIMIT 0,500; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table FORCE INDEX (id1_type) WHERE link_type=1 AND id1=1 AND visibility=0 AND time>=1551074583 ORDER BY time DESC, id2 DESC LIMIT 0,500; +# IN expression multiplexing +SELECT /*+ bypass */ id1,id1_type,id2,id2_type FROM test.link_table WHERE id1 IN (1,2,3) AND link_type=3 ORDER BY link_type ASC, id1 ASC, id2 ASC; +# IN expression multiplexing in middle +SELECT /*+ bypass */ id1,id1_type,id2,id2_type FROM test.link_table WHERE id1 IN (1,2,3) AND link_type=3 AND id2=1 ORDER BY link_type ASC, id1 ASC, id2 ASC; +# IN expression with multiple IN +SELECT /*+ bypass */ id1,id1_type,id2,id2_type FROM test.link_table WHERE id1 IN (1,2,3) AND id2 IN (3,4,5) AND link_type=3 ORDER BY link_type ASC, id1 ASC, id2 ASC; +# Decoding varchar with extra padding spaces from index +SELECT /*+ bypass */ id1,id2,data,version,time FROM test.link_table FORCE INDEX (id1_type) WHERE id1=9 and link_type=5; +# Point query with duplicate items +SELECT /*+ bypass */ id,type,version,update_time,data FROM test.node_table FORCE INDEX (PRIMARY) WHERE id IN (5,5,5,5,5) AND type=1; +# Point query with reverse order +SELECT /*+ bypass */ id,type,version,update_time,data FROM test.node_table FORCE INDEX (PRIMARY) WHERE id IN (5,4,3,2,1) AND type=1; +# Point query with correct order +SELECT /*+ bypass */ id,type,version,update_time,data FROM test.node_table FORCE INDEX (PRIMARY) WHERE id IN (5,4,3,2,1) AND type=1 ORDER BY id DESC; +# Range query with bloom filter +SELECT /*+ bypass */ id1,id2,data,time,version FROM test.link_table5 WHERE link_type=1 AND id1=2 and id2>1; +SELECT /*+ bypass */ id1,id2,data,time,version FROM test.link_table5 WHERE link_type=1 AND id1=2 and id2>=1; +# Range query with PK key only +SELECT /*+ bypass */ id2 FROM test.link_table5 WHERE link_type=1 AND id1=2 AND id2=1; +SELECT /*+ bypass */ id2 FROM test.link_table5 WHERE link_type=1 and id1>=2 ORDER BY id1 ASC; +# Range query with PK key only with filters +SELECT /*+ bypass */ id2 FROM test.link_table5 WHERE link_type=1 and id1=2 and id2>1; +SELECT /*+ bypass */ id2 FROM test.link_table5 WHERE link_type=1 and id1=2 and id2>=1; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table7 FORCE INDEX (id1_type) WHERE link_type=9223372036854775807 AND id1=9223372036854775807 AND visibility=0 ORDER BY time ASC, id2 ASC limit 0,1000; +SELECT /*+ bypass */ id1,id2,link_type,visibility,data,time,version FROM test.link_table8 FORCE INDEX (PRIMARY) WHERE link_type=100 and id1=1 ORDER BY id2 ASC limit 0,1000; +SELECT /*+ bypass */ mt_object_state,id,mt_object_cookie,mt_alt_key_data,mt_key,mt_ctime,mt_rtime,mt_ref,mt_object_type,mt_last_update,mt_total_size,mt_object_type2,policy_id,ttl,policy FROM test.meta_table FORCE INDEX (PRIMARY) WHERE lvid=100 AND id>=3 ORDER BY id ASC LIMIT 1000000; +# Uncovered TEXT/VARCHAR in PK +SELECT /*+ bypass */ id2,version,data FROM test.link_text FORCE INDEX (PRIMARY) WHERE id1=1 and link_type=3 and id2>=1; +SELECT /*+ bypass */ id2,version,data FROM test.link_varchar FORCE INDEX (PRIMARY) WHERE id1=1 and link_type=3 and id2>=1; +# Uncovered TEXT/VARCHAR in SK +SELECT /*+ bypass */ id2,version,data FROM test.link_text FORCE INDEX (id1_type) WHERE id1=1 and link_type=3 and visibility=4 and time>=10; +SELECT /*+ bypass */ id2,version,data FROM test.link_varchar FORCE INDEX (id1_type) WHERE id1=1 and link_type=3 and visibility=4 and time>=10; +EOF + +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +eval INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME '$TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; + +--diff_files $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result + +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt + +DROP TABLE id_table_bloom; +DROP TABLE link_table7; +DROP TABLE link_table8; +DROP TABLE meta_table; + +--source ../include/bypass_drop_table.inc diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_unsupported-master.opt b/mysql-test/suite/rocksdb/t/bypass_rpc_unsupported-master.opt new file mode 100644 index 000000000000..cb00a561fc1a --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_unsupported-master.opt @@ -0,0 +1 @@ +$TEST_BYPASS_RPC_PLUGIN_OPT diff --git a/mysql-test/suite/rocksdb/t/bypass_rpc_unsupported.test b/mysql-test/suite/rocksdb/t/bypass_rpc_unsupported.test new file mode 100644 index 000000000000..6cad398d53af --- /dev/null +++ b/mysql-test/suite/rocksdb/t/bypass_rpc_unsupported.test @@ -0,0 +1,65 @@ +--source include/have_rocksdb.inc + +--let $MYSQLD_DATADIR= `select @@datadir` +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR +SELECT @@rocksdb_select_bypass_policy into @save_rocksdb_select_bypass_policy; +SET GLOBAL rocksdb_select_bypass_policy=2; +SELECT @@rocksdb_select_bypass_allow_filters into @save_rocksdb_select_bypass_allow_filters; +SET GLOBAL rocksdb_select_bypass_allow_filters=0; + +create table t1 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, d INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t2 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c INT NOT NULL, KEY a (a, b, c)) ENGINE=ROCKSDB; +create table t3 (pk INT PRIMARY KEY NOT NULL, a INT NOT NULL, b INT NOT NULL, +c VARCHAR(15) CHARACTER SET latin1 NOT NULL, KEY a (a, b)) ENGINE=ROCKSDB; +create table t4 (pk INT PRIMARY KEY, a INT) ENGINE=ROCKSDB; + +--write_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk>1 AND pk>2 AND pk>3; +SELECT /*+ bypass */ d FROM test.t1 FORCE INDEX (a) WHERE a=1 AND b=2 AND d>4; +SELECT /*+ bypass */ d FROM test.t1 FORCE INDEX (a) WHERE a=1 AND b>2 AND d>4; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk>1 AND pk>2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk<1 AND pk<2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk<=1 AND pk<=2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk>=1 AND pk>=2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk>1 AND pk>=2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk>=1 AND pk>2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk<1 AND pk<=2; +SELECT /*+ bypass */ pk FROM test.t1 WHERE pk<=1 AND pk<2; +SELECT /*+ bypass */ a,b,c FROM test.t1 WHERE a>0 AND b>0; +SELECT /*+ bypass */ a,b,c FROM test.t1 WHERE b IN (1,2) AND a>0; +SELECT /*+ bypass */ a,b,c FROM test.t1 WHERE a>0 and b>0 and c>0; +SELECT /*+ bypass */ a,b,c FROM test.t1 WHERE a=1 ORDER BY a ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (a) WHERE a=1 ORDER BY b ASC, a ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (a) WHERE a=1 ORDER BY a ASC, b ASC, c ASC, c ASC, c ASC, a ASC, b ASC, c ASC, d ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (a) WHERE a=1 ORDER BY c ASC, a ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (a) WHERE a=1 ORDER BY a ASC, a ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (a) WHERE a=1 ORDER BY a ASC, a ASC, a ASC, a ASC, a ASC, a ASC, a ASC, a ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (a) WHERE a=1 ORDER BY b ASC, b ASC; +SELECT /*+ bypass */ a,b,c FROM test.t3 FORCE INDEX (a) WHERE a=1 ORDER BY b ASC, b ASC; +SELECT /*+ bypass */ a,b,c FROM test.t1 FORCE INDEX (abc) WHERE a=1 ORDER BY b ASC, a ASC; +# Too many WHERE expressions +SELECT /*+ bypass */ a FROM test.t3 WHERE a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1 AND a=1; +# NULL fields not supported +SELECT /*+ bypass */ a FROM test.t4 WHERE a=1; +EOF + +--replace_result $TEST_BYPASS_RPC_PLUGIN TEST_BYPASS_RPC_PLUGIN +eval INSTALL PLUGIN test_bypass_rpc_plugin_info SONAME '$TEST_BYPASS_RPC_PLUGIN'; +UNINSTALL PLUGIN test_bypass_rpc_plugin_info; + +--diff_files $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result + +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_sql.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_rpc.result +--remove_file $MYSQLD_DATADIR/test_bypass_rpc_plugin_input.txt + +set global rocksdb_select_bypass_allow_filters=@save_rocksdb_select_bypass_allow_filters; +set global rocksdb_select_bypass_policy=@save_rocksdb_select_bypass_policy; + +drop table t1; +drop table t2; +drop table t3; +drop table t4; diff --git a/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc b/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc index c52034122b14..b8bfca24eb9d 100644 --- a/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc +++ b/plugin/test_bypass_rpc_plugin/test_bypass_rpc_plugin_info.cc @@ -222,6 +222,12 @@ static int sql_get_string(void *, const char *const value, size_t length, return false; } +static void sql_handle_error(void *, uint sql_errno, const char *const err_msg, + const char *const) { + DBUG_TRACE; + fprintf(outfile_sql, "ERROR %u: %s\n", sql_errno, err_msg); +} + const struct st_command_service_cbs sql_cbs = { sql_start_result_metadata, sql_field_metadata, @@ -240,7 +246,7 @@ const struct st_command_service_cbs sql_cbs = { sql_get_datetime, sql_get_string, nullptr, // sql_handle_ok, - nullptr, // sql_handle_error, + sql_handle_error, nullptr, // sql_shutdown, nullptr, }; @@ -340,6 +346,27 @@ static void fill_where_in(myrocks_select_from_rpc ¶m, std::string &query) { } } +static void fill_where_string(myrocks_select_from_rpc ¶m, + std::string &query, + std::vector &string_vec) { + std::regex r(R"(([a-zA-Z0-9_]{1,})(>|=|<|>=|<=)\"(\S+)\")"); + std::smatch m; + while (regex_search(query, m, r)) { + std::string name(m[1]), op(m[2]), val(m[3]); + myrocks_column_cond_value cond_val; + cond_val.type = myrocks_value_type::STRING; + + string_vec.push_back(std::move(val)); + cond_val.stringVal = string_vec.back().c_str(); + cond_val.length = string_vec.back().size(); + myrocks_where_item witem = {.column = std::move(name), + .op = convertToWhereOp(op), + .value = std::move(cond_val)}; + param.where.push_back(std::move(witem)); + query = m.suffix(); + } +} + static void fill_where(myrocks_select_from_rpc ¶m, std::string &query) { std::regex r(R"(([a-zA-Z0-9_]{1,})(>|=|<|>=|<=)(\d+))"); std::smatch m; @@ -418,6 +445,7 @@ static void test_rpc(void *) { char line_buffer[RPC_MAX_QUERY_LENGTH]; while (fgets(line_buffer, RPC_MAX_QUERY_LENGTH, infile)) { std::string query_str(line_buffer); + std::vector string_vec; fprintf(outfile_rpc, "%s", query_str.c_str()); myrocks_select_from_rpc param; @@ -427,11 +455,16 @@ static void test_rpc(void *) { if (query_str.empty()) continue; fill_force_index(param, query_str); fill_where_in(param, query_str); + fill_where_string(param, query_str, string_vec); fill_where(param, query_str); fill_order_by(param, query_str); fill_limit(param, query_str); - bypass_select(¶m); + const auto &exception = bypass_select(¶m); + if (exception.errnum) { + fprintf(outfile_rpc, "ERROR %d: %s\n", exception.errnum, + exception.message.c_str()); + } // if allocated, more_values needs to be deallocated for (auto &witem : param.where_in) { diff --git a/storage/rocksdb/nosql_access.cc b/storage/rocksdb/nosql_access.cc index 5921149ef930..a19a8055bf2d 100644 --- a/storage/rocksdb/nosql_access.cc +++ b/storage/rocksdb/nosql_access.cc @@ -198,7 +198,7 @@ class rpc_protocol : public base_protocol { case MYSQL_TYPE_BLOB: { const auto field_blob = static_cast(field); uint packlength = field_blob->pack_length_no_ptr(); - uint length = field_blob->get_length_bytes(); + uint length = field_blob->data_length(); uchar *ucharptr; memcpy(&ucharptr, field_blob->field_ptr() + packlength, sizeof(uchar *)); @@ -207,7 +207,15 @@ class rpc_protocol : public base_protocol { rpcbuf->type = myrocks_value_type::STRING; break; } - + case MYSQL_TYPE_STRING: { + const auto field_str = static_cast(field); + const auto ptr = field_str->field_ptr(); + uint length = field_str->max_display_length(); + rpcbuf->stringVal = const_cast(ptr); + rpcbuf->length = length; + rpcbuf->type = myrocks_value_type::STRING; + break; + } default: // todo: support more type return true; @@ -1189,7 +1197,8 @@ class rpc_select_parser : public base_select_parser { val_type = myrocks_value_type::UNSIGNED_INT; return false; } - case MYSQL_TYPE_VARCHAR: { + case MYSQL_TYPE_VARCHAR: + case MYSQL_TYPE_STRING: { val_type = myrocks_value_type::STRING; return false; } @@ -1236,7 +1245,7 @@ class rpc_select_parser : public base_select_parser { if (add_field_list(found)) { return true; } - idx = m_field_index.size() - 1; + idx = m_field_list.size() - 1; } m_cond_list[m_cond_count++] = { Item_func::IN_FUNC, found, @@ -1269,7 +1278,7 @@ class rpc_select_parser : public base_select_parser { if (add_field_list(found)) { return true; } - idx = m_field_index.size() - 1; + idx = m_field_list.size() - 1; } auto op = convert_where_op(item.op); @@ -1311,6 +1320,11 @@ class rpc_select_parser : public base_select_parser { for (uint i = 0; i < m_cond_count; i++) { m_cond_list_ptr.push_back(&m_cond_list[i]); } + + if (m_cond_count == 0) { + m_error_msg = "No WHERE expressions found"; + return true; + } return false; } @@ -2655,14 +2669,16 @@ bypass_rpc_exception myrocks_select_by_key( rocksdb_select_bypass_failed++; ret.errnum = ER_NOT_SUPPORTED_YET; ret.sqlstate = "MYF(0)"; - ret.message = exec.get_error_msg(); + ret.message = "SELECT statement pattern not supported: "; + ret.message.append(exec.get_error_msg()); } else { rocksdb_select_bypass_executed++; } } else { ret.errnum = ER_NOT_SUPPORTED_YET; ret.sqlstate = "MYF(0)"; - ret.message = select_stmt.get_error_msg(); + ret.message = "SELECT statement pattern not supported: "; + ret.message.append(select_stmt.get_error_msg()); } return ret; From 81baa6cd24ee0285019a52f1096812e66c68138d Mon Sep 17 00:00:00 2001 From: Luqun Lou Date: Wed, 8 Jun 2022 17:19:16 -0700 Subject: [PATCH 15/17] update dynamic_load_error to compare error message only Summary: dynamic_load_error testcase simulate error during dynamic load wsenv library. Sometime dynamic_load_error MTR will fail due to different errno: 11(EAGAIN), ``` -ERROR HY000: Can't open shared library 'librocks_object_factory.so' (errno: 0 (null)) +ERROR HY000: Can't open shared library 'librocks_object_factory.so' (errno: 11 (null)) ``` update testcase to compare "Can't open shared library" only. Reviewed By: lth Differential Revision: D37026294 fbshipit-source-id: 5d466340a200c1a5238fb4ee02155b24f77590b6 --- mysql-test/suite/sql_wsenv/r/dynamic_load_error_wsenv.result | 2 +- mysql-test/suite/sql_wsenv/t/dynamic_load_error_wsenv.test | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mysql-test/suite/sql_wsenv/r/dynamic_load_error_wsenv.result b/mysql-test/suite/sql_wsenv/r/dynamic_load_error_wsenv.result index 716c8de3591c..7d1767da2dff 100644 --- a/mysql-test/suite/sql_wsenv/r/dynamic_load_error_wsenv.result +++ b/mysql-test/suite/sql_wsenv/r/dynamic_load_error_wsenv.result @@ -2,7 +2,7 @@ set enable_sql_wsenv=1; CREATE TABLE t1(x VARCHAR(100)); SET SESSION debug='d,simulate_wsenv_dlopen_error'; SELECT * FROM t1 INTO OUTFILE 'OUTPUT_FILE';; -ERROR HY000: Can't open shared library 'librocks_object_factory.so' (errno: 0 (null)) +ERROR HY000: Can't open shared library SET SESSION debug=DEFAULT; SELECT * FROM t1 INTO OUTFILE 'OUTPUT_FILE';; ERROR HY000: Can't create/write to file 'OUTPUT_FILE' (OS errno 22 - Invalid argument) diff --git a/mysql-test/suite/sql_wsenv/t/dynamic_load_error_wsenv.test b/mysql-test/suite/sql_wsenv/t/dynamic_load_error_wsenv.test index b3eba593e713..5d8aa3b8c79c 100644 --- a/mysql-test/suite/sql_wsenv/t/dynamic_load_error_wsenv.test +++ b/mysql-test/suite/sql_wsenv/t/dynamic_load_error_wsenv.test @@ -7,6 +7,7 @@ CREATE TABLE t1(x VARCHAR(100)); SET SESSION debug='d,simulate_wsenv_dlopen_error'; --let $output_file=$SQL_WSENV_MTR_PATH/t1.txt --replace_result $output_file OUTPUT_FILE +--replace_regex /.*Can\'t open shared library.*/Can't open shared library/ --error 92 --eval SELECT * FROM t1 INTO OUTFILE '$output_file'; SET SESSION debug=DEFAULT; From ec8d3073876edfbcd90745cf7b5e1a042983b60c Mon Sep 17 00:00:00 2001 From: Manuel Ung Date: Wed, 8 Jun 2022 17:15:47 -0700 Subject: [PATCH 16/17] Stabilize rocksdb.rocksdb_mrr Summary: As titled. Reviewed By: luqun Differential Revision: D37044391 fbshipit-source-id: 3996d39075bd7f9d3589b8b88a7373ce09cb706d --- mysql-test/suite/rocksdb/r/rocksdb_mrr.result | 16 ++++++++-------- mysql-test/suite/rocksdb/t/rocksdb_mrr.test | 7 ++++++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/mysql-test/suite/rocksdb/r/rocksdb_mrr.result b/mysql-test/suite/rocksdb/r/rocksdb_mrr.result index 4f0b834bdea6..620689d778fa 100644 --- a/mysql-test/suite/rocksdb/r/rocksdb_mrr.result +++ b/mysql-test/suite/rocksdb/r/rocksdb_mrr.result @@ -538,14 +538,14 @@ drop table t20; # explain select t3.col1 from t3 where t3.col1=20 or t3.col1 between 25 and 28; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using where; Using index +1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`col1` AS `col1` from `test`.`t3` where ((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28)) # This will use MRR: explain select * from t3 where t3.col1=20 or t3.col1 between 25 and 28; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using index condition; Using MRR +1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using index condition; Using MRR Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler` from `test`.`t3` where ((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28)) select * from t3 where t3.col1=20 or t3.col1 between 25 and 28; @@ -559,7 +559,7 @@ pk1 pk2 col1 filler explain select * from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using index condition; Using MRR +1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using index condition; Using MRR Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler` from `test`.`t3` where (((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28)) and ((`test`.`t3`.`col1` % 2) = 0)) select * from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; @@ -576,7 +576,7 @@ explain select pk1,pk2,col1, filler,mod(t3.col1,2) from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using index condition; Using MRR +1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using index condition; Using MRR Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler`,(`test`.`t3`.`col1` % 2) AS `mod(t3.col1,2)` from `test`.`t3` where (((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28)) and ((`test`.`t3`.`col1` % 2) = 0)) select pk1,pk2,col1, filler,mod(t3.col1,2) from t3 @@ -594,8 +594,8 @@ pk1 pk2 col1 filler mod(t3.col1,2) explain select * from t0,t3 where t3.col1=t0.a and mod(t3.pk2,2)=t0.a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t0 NULL ALL NULL NULL NULL NULL 10 100.00 Using where -1 SIMPLE t3 NULL ref col1 col1 5 test.t0.a 11 100.00 Using index condition; Using join buffer (Batched Key Access) +1 SIMPLE t0 NULL ALL NULL NULL NULL NULL # # Using where +1 SIMPLE t3 NULL ref col1 col1 5 test.t0.a # # Using index condition; Using join buffer (Batched Key Access) Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`a` AS `a`,`test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler` from `test`.`t0` join `test`.`t3` where ((`test`.`t3`.`col1` = `test`.`t0`.`a`) and ((`test`.`t3`.`pk2` % 2) = `test`.`t0`.`a`)) select * from t0,t3 where t3.col1=t0.a and mod(t3.pk2,2)=t0.a; @@ -630,8 +630,8 @@ a pk1 pk2 col1 filler explain select * from t0 left join t4 using (a) where t4.a is null; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t0 NULL ALL NULL NULL NULL NULL 10 # NULL -1 SIMPLE t4 NULL eq_ref PRIMARY PRIMARY 4 test.t0.a 1 # Using where; Not exists; Using index; Using join buffer (Batched Key Access) +1 SIMPLE t0 NULL ALL NULL NULL NULL NULL # # NULL +1 SIMPLE t4 NULL eq_ref PRIMARY PRIMARY 4 test.t0.a # # Using where; Not exists; Using index; Using join buffer (Batched Key Access) Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`a` AS `a` from `test`.`t0` left join `test`.`t4` on((`test`.`t4`.`a` = `test`.`t0`.`a`)) where (`test`.`t4`.`a` is null) select * from t0 left join t4 using (a) where t4.a is null; diff --git a/mysql-test/suite/rocksdb/t/rocksdb_mrr.test b/mysql-test/suite/rocksdb/t/rocksdb_mrr.test index 2e761d242da9..2e73c66362a8 100644 --- a/mysql-test/suite/rocksdb/t/rocksdb_mrr.test +++ b/mysql-test/suite/rocksdb/t/rocksdb_mrr.test @@ -258,20 +258,24 @@ drop table t20; --echo # --echo # Check how MRR works without BKA --echo # +--replace_column 10 # 11 # explain select t3.col1 from t3 where t3.col1=20 or t3.col1 between 25 and 28; --echo # This will use MRR: +--replace_column 10 # 11 # explain select * from t3 where t3.col1=20 or t3.col1 between 25 and 28; select * from t3 where t3.col1=20 or t3.col1 between 25 and 28; --echo # Check if Index Condition Pushdown works +--replace_column 10 # 11 # explain select * from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; select * from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; select * from t3 use index() where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; +--replace_column 10 # 11 # explain select pk1,pk2,col1, filler,mod(t3.col1,2) from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; @@ -286,6 +290,7 @@ where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0; --echo # "current row" for the preceding table(s) --echo # +--replace_column 10 # 11 # explain select * from t0,t3 where t3.col1=t0.a and mod(t3.pk2,2)=t0.a; select * from t0,t3 where t3.col1=t0.a and mod(t3.pk2,2)=t0.a; @@ -308,7 +313,7 @@ explain select * from t0 left join t3 on t3.col1=t0.a where t3.pk1 is null; select * from t0 left join t3 on t3.col1=t0.a where t3.pk1 is null; ---replace_column 11 # +--replace_column 10 # 11 # explain select * from t0 left join t4 using (a) where t4.a is null; select * from t0 left join t4 using (a) where t4.a is null; From b277527bff22a9d9af4cbed25bc09f0aa7826d5a Mon Sep 17 00:00:00 2001 From: leipeng Date: Tue, 14 Jun 2022 08:42:47 +0800 Subject: [PATCH 17/17] use emplace instead of find + emplace --- storage/rocksdb/ha_rocksdb.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/rocksdb/ha_rocksdb.cc b/storage/rocksdb/ha_rocksdb.cc index 675c4e4ba4eb..0b432bb4547e 100644 --- a/storage/rocksdb/ha_rocksdb.cc +++ b/storage/rocksdb/ha_rocksdb.cc @@ -7276,8 +7276,8 @@ Rdb_table_handler *Rdb_open_tables_map::get_table_handler( // First, look up the table in the hash map. RDB_MUTEX_LOCK_CHECK(m_mutex); - const auto it = m_table_map.find(table_name_str); - if (it != m_table_map.end()) { + const auto [it, success] = m_table_map.emplace(table_name_str, nullptr); + if (!success) { // Found it table_handler = it->second; } else { @@ -7289,6 +7289,7 @@ Rdb_table_handler *Rdb_open_tables_map::get_table_handler( my_multi_malloc(PSI_NOT_INSTRUMENTED, MYF(MY_WME | MY_ZEROFILL), &table_handler, sizeof(*table_handler), &tmp_name, table_name_str.length() + 1, NullS)))) { + m_table_map.erase(it); // malloc failing is unlikely // Allocating a new Rdb_table_handler and a new table name failed. RDB_MUTEX_UNLOCK_CHECK(m_mutex); return nullptr; @@ -7299,7 +7300,7 @@ Rdb_table_handler *Rdb_open_tables_map::get_table_handler( table_handler->m_table_name = tmp_name; strxmov(table_handler->m_table_name, table_name, NullS); - m_table_map.emplace(table_name_str, table_handler); + it->second = table_handler; thr_lock_init(&table_handler->m_thr_lock); table_handler->m_io_perf_read.init();