Debian Codegraph @

mysql-test/suite/perfschema/t/idx_compare_threads.test

raw
1 #
2 # Verify that query results are the same with and without indexes.
3 #
4 --source include/have_debug_sync.inc
5
6 let $table = "threads";
7
8 --echo TABLE: $table
9 --echo INDEXES: PK (THREAD_ID), KEY (NAME), KEY (PROCESSLIST_ID),
10 --echo KEY (PROCESSLIST_USER, PROCESSLIST_HOST),
11 --echo KEY (PROCESSLIST_HOST), KEY (THREAD_OS_ID)
12
13 --source ../include/idx_compare_setup.inc
14
15 # Get thread_os_id for user2
16
17 --disable_query_log
18 eval SELECT thread_os_id
19 INTO @thread_os_id
20 FROM performance_schema.threads
21 WHERE thread_id = $con2_thread_id;
22 --enable_query_log
23
24 --echo
25 --echo ## Test THREAD_ID
26 let $key_group = 14;
27 let $id_column = THREAD_ID;
28 --disable_query_log
29 eval SET @target_id = $con2_thread_id;
30 --enable_query_log
31 --source ../include/idx_compare_load.inc
32
33 --echo
34 --echo ## Test NAME
35 let $key_group = 13;
36 let $name_column = NAME;
37 let $target_name = thread/sql/one_connection;
38 --source ../include/idx_compare_load.inc
39
40 --echo
41 --echo ## Test PROCESSLIST_USER, PROCESSLIST_HOST
42 let $key_group = 2.1.1;
43 --source ../include/idx_compare_load.inc
44
45 --echo
46 --echo ## Test PROCESSLIST_HOST
47 let $key_group = 6.3;
48 --source ../include/idx_compare_load.inc
49
50 --echo
51 --echo ## Test THREAD_OS_ID
52 let $key_group = 14;
53 let $id_column = THREAD_OS_ID;
54 --disable_query_log
55 eval SET @target_id = $con2_thread_os_id;
56 --enable_query_log
57 --source ../include/idx_compare_load.inc
58
59
60 --source ../include/idx_compare_cleanup.inc