Debian Codegraph @

mysql-test/suite/perfschema/r/dml_setup_instruments.result

raw
1 select * from performance_schema.setup_instruments;
2 select * from performance_schema.setup_instruments
3 where name like 'Wait/Synch/Mutex/sql/%'
4 and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex')
5 order by name limit 10;
6 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
7 wait/synch/mutex/sql/Commit_order_manager::m_mutex YES YES NULL 0 NULL
8 wait/synch/mutex/sql/Cost_constant_cache::LOCK_cost_const YES YES singleton NULL 0 NULL
9 wait/synch/mutex/sql/Event_scheduler::LOCK_scheduler_state YES YES singleton NULL 0 NULL
10 wait/synch/mutex/sql/Gtid_set::gtid_executed::free_intervals_mutex YES YES NULL 0 NULL
11 wait/synch/mutex/sql/Gtid_state YES YES singleton NULL 0 NULL
12 wait/synch/mutex/sql/hash_filo::lock YES YES NULL 0 NULL
13 wait/synch/mutex/sql/key_mta_gaq_LOCK YES YES NULL 0 NULL
14 wait/synch/mutex/sql/key_mta_temp_table_LOCK YES YES NULL 0 NULL
15 wait/synch/mutex/sql/LOCK_acl_cache_flush YES YES singleton NULL 0 NULL
16 wait/synch/mutex/sql/LOCK_admin_tls_ctx_options YES YES NULL 0 A lock to control all of the --ssl-* CTX related command line options for administrative connection port
17 select * from performance_schema.setup_instruments
18 where name like 'Wait/Synch/Rwlock/sql/%'
19 and name not in (
20 'wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock',
21 'wait/synch/rwlock/sql/LOCK_named_pipe_full_access_group')
22 order by name limit 10;
23 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
24 wait/synch/rwlock/sql/Binlog_relay_IO_delegate::lock YES YES singleton NULL 0 NULL
25 wait/synch/rwlock/sql/Binlog_storage_delegate::lock YES YES singleton NULL 0 NULL
26 wait/synch/rwlock/sql/Binlog_transmit_delegate::lock YES YES singleton NULL 0 NULL
27 wait/synch/rwlock/sql/channel_lock YES YES NULL 0 NULL
28 wait/synch/rwlock/sql/channel_map_lock YES YES NULL 0 NULL
29 wait/synch/rwlock/sql/channel_to_filter_lock YES YES NULL 0 NULL
30 wait/synch/rwlock/sql/gtid_commit_rollback YES YES singleton NULL 0 NULL
31 wait/synch/rwlock/sql/gtid_mode_lock YES YES singleton NULL 0 NULL
32 wait/synch/rwlock/sql/gtid_retrieved YES YES singleton NULL 0 NULL
33 wait/synch/rwlock/sql/LOCK_sys_init_connect YES YES singleton NULL 0 NULL
34 select * from performance_schema.setup_instruments
35 where name like 'Wait/Synch/Cond/sql/%'
36 and name not in (
37 'wait/synch/cond/sql/COND_open',
38 'wait/synch/cond/sql/COND_handler_count',
39 'wait/synch/cond/sql/DEBUG_SYNC::cond',
40 'wait/synch/cond/sql/COND_socket_listener_active',
41 'wait/synch/cond/sql/COND_start_signal_handler')
42 order by name limit 10;
43 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
44 wait/synch/cond/sql/Commit_order_manager::m_workers.cond YES YES NULL 0 NULL
45 wait/synch/cond/sql/COND_compress_gtid_table YES YES singleton NULL 0 NULL
46 wait/synch/cond/sql/COND_connection_count YES YES singleton NULL 0 NULL
47 wait/synch/cond/sql/COND_flush_thread_cache YES YES singleton NULL 0 NULL
48 wait/synch/cond/sql/COND_manager YES YES singleton NULL 0 NULL
49 wait/synch/cond/sql/COND_queue_state YES YES singleton NULL 0 NULL
50 wait/synch/cond/sql/COND_server_started YES YES singleton NULL 0 NULL
51 wait/synch/cond/sql/COND_thd_list YES YES NULL 0 NULL
52 wait/synch/cond/sql/COND_thr_lock YES YES NULL 0 NULL
53 wait/synch/cond/sql/COND_thread_cache YES YES singleton NULL 0 NULL
54 select * from performance_schema.setup_instruments
55 where name='Wait';
56 select * from performance_schema.setup_instruments
57 where enabled='YES';
58 insert into performance_schema.setup_instruments
59 set name='FOO', enabled='YES', timed='YES';
60 ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_instruments'
61 update performance_schema.setup_instruments
62 set name='FOO';
63 ERROR HY000: Invalid performance_schema usage.
64 update performance_schema.setup_instruments
65 set enabled='NO';
66 update performance_schema.setup_instruments
67 set timed='NO';
68 select * from performance_schema.setup_instruments;
69 update performance_schema.setup_instruments
70 set enabled='YES', timed='YES';
71 delete from performance_schema.setup_instruments;
72 ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments'
73 delete from performance_schema.setup_instruments
74 where name like 'Wait/Synch/%';
75 ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments'
76 LOCK TABLES performance_schema.setup_instruments READ;
77 UNLOCK TABLES;
78 LOCK TABLES performance_schema.setup_instruments WRITE;
79 UNLOCK TABLES;
80
81 # Bug#13813193 ASSERTION `TABLE->READ_SET ==
82 # &TABLE->DEF_READ_SET' FAILED / MYSQL_UPDATE
83
84 UPDATE performance_schema.setup_instruments SET timed='NO'
85 ORDER BY RAND();
86 update performance_schema.setup_instruments
87 set PROPERTIES='singleton';
88 ERROR HY000: Invalid performance_schema usage.
89 select NOW() as fixme, NAME, PROPERTIES, FLAGS
90 from performance_schema.setup_instruments
91 where NAME like 'memory/%'
92 AND (find_in_set('global_statistics', PROPERTIES) != 0)
93 AND (find_in_set('controlled_by_default', PROPERTIES) != 0);
94 fixme NAME PROPERTIES FLAGS
95 select distinct FLAGS from performance_schema.setup_instruments
96 ORDER BY FLAGS;
97 FLAGS
98 NULL
99
100 controlled
101 select distinct FLAGS from performance_schema.setup_instruments
102 WHERE (find_in_set('controlled_by_default', PROPERTIES) != 0);
103 FLAGS
104 controlled
105 select distinct FLAGS from performance_schema.setup_instruments
106 WHERE (find_in_set('controlled_by_default', PROPERTIES) = 0);
107 FLAGS
108 NULL
109
110 select * from performance_schema.setup_instruments
111 WHERE (FLAGS IS NULL) AND (NAME LIKE "memory/%");
112 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
113 select * from performance_schema.setup_instruments
114 WHERE (FLAGS IS NOT NULL) AND (NAME NOT LIKE "memory/%");
115 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
116 update performance_schema.setup_instruments
117 set FLAGS='garbage' where name like "wait/%";
118 select distinct FLAGS from performance_schema.setup_instruments
119 where name like "wait/%";
120 FLAGS
121 NULL
122 update performance_schema.setup_instruments
123 set FLAGS = NULL where name like "wait/%";
124 select distinct FLAGS from performance_schema.setup_instruments
125 where name like "wait/%";
126 FLAGS
127 NULL
128 update performance_schema.setup_instruments
129 set FLAGS = '' where name like "wait/%";
130 select distinct FLAGS from performance_schema.setup_instruments
131 where name like "wait/%";
132 FLAGS
133 NULL
134 update performance_schema.setup_instruments
135 set FLAGS = 'controlled' where name like "wait/%";
136 select distinct FLAGS from performance_schema.setup_instruments
137 where name like "wait/%";
138 FLAGS
139 NULL
140 update performance_schema.setup_instruments
141 set FLAGS = 'garbage' where name like "memory/%";
142 select distinct FLAGS from performance_schema.setup_instruments
143 where name like "memory/%";
144 FLAGS
145
146 controlled
147 update performance_schema.setup_instruments
148 set FLAGS = NULL where name like "memory/%";
149 select distinct FLAGS from performance_schema.setup_instruments
150 where name like "memory/%";
151 FLAGS
152
153 update performance_schema.setup_instruments
154 set FLAGS = '' where name like "memory/%";
155 select distinct FLAGS from performance_schema.setup_instruments
156 where name like "memory/%";
157 FLAGS
158
159 update performance_schema.setup_instruments
160 set FLAGS = 'controlled' where name like "memory/%";
161 select count(*) from performance_schema.setup_instruments
162 where name like "memory/%"
163 and (find_in_set('global_statistics', PROPERTIES) != 0)
164 and (FLAGS = 'controlled');
165 count(*)
166 0
167 select count(*) from performance_schema.setup_instruments
168 where name like "memory/%"
169 and (find_in_set('global_statistics', PROPERTIES) = 0)
170 and (find_in_set('controlled', FLAGS) = 0);
171 count(*)
172 0
173 update performance_schema.setup_instruments
174 set enabled='YES', TIMED='YES';
175 update performance_schema.setup_instruments
176 set FLAGS = '';
177 update performance_schema.setup_instruments
178 set FLAGS = 'controlled'
179 where (find_in_set('controlled_by_default', PROPERTIES));