SET @start_global_value = @@global.log_slow_filter;
select @@global.log_slow_filter;
@@global.log_slow_filter
admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
select @@session.log_slow_filter;
@@session.log_slow_filter
admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
show global variables like 'log_slow_filter';
Variable_name	Value
log_slow_filter	admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
show session variables like 'log_slow_filter';
Variable_name	Value
log_slow_filter	admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
select * from information_schema.global_variables where variable_name='log_slow_filter';
VARIABLE_NAME	VARIABLE_VALUE
LOG_SLOW_FILTER	admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
select * from information_schema.session_variables where variable_name='log_slow_filter';
VARIABLE_NAME	VARIABLE_VALUE
LOG_SLOW_FILTER	admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
set global log_slow_filter=1;
select @@global.log_slow_filter;
@@global.log_slow_filter
admin
set session log_slow_filter=1;
select @@session.log_slow_filter;
@@session.log_slow_filter
admin
set session log_slow_filter=1;
select @@session.log_slow_filter;
@@session.log_slow_filter
admin
set session log_slow_filter=2;
select @@session.log_slow_filter;
@@session.log_slow_filter
filesort
set session log_slow_filter=5;
select @@session.log_slow_filter;
@@session.log_slow_filter
admin,filesort_on_disk
set session log_slow_filter='admin';
select @@session.log_slow_filter;
@@session.log_slow_filter
admin
set session log_slow_filter='filesort';
select @@session.log_slow_filter;
@@session.log_slow_filter
filesort
set session log_slow_filter='filesort_on_disk';
select @@session.log_slow_filter;
@@session.log_slow_filter
filesort_on_disk
set session log_slow_filter='full_join';
select @@session.log_slow_filter;
@@session.log_slow_filter
full_join
set session log_slow_filter='full_scan';
select @@session.log_slow_filter;
@@session.log_slow_filter
full_scan
set session log_slow_filter='query_cache';
select @@session.log_slow_filter;
@@session.log_slow_filter
query_cache
set session log_slow_filter='query_cache_miss';
select @@session.log_slow_filter;
@@session.log_slow_filter
query_cache_miss
set session log_slow_filter='tmp_table';
select @@session.log_slow_filter;
@@session.log_slow_filter
tmp_table
set session log_slow_filter='tmp_table_on_disk';
select @@session.log_slow_filter;
@@session.log_slow_filter
tmp_table_on_disk
set session log_slow_filter='filesort,query_cache';
select @@session.log_slow_filter;
@@session.log_slow_filter
filesort,query_cache
set session log_slow_filter='admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk';
select @@session.log_slow_filter;
@@session.log_slow_filter
admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
set session log_slow_filter='';
select @@session.log_slow_filter;
@@session.log_slow_filter

set session log_slow_filter=1.1;
ERROR 42000: Incorrect argument type to variable 'log_slow_filter'
set session log_slow_filter=1e1;
ERROR 42000: Incorrect argument type to variable 'log_slow_filter'
set session log_slow_filter="foo";
ERROR 42000: Variable 'log_slow_filter' can't be set to the value of 'foo'
set session log_slow_filter=1024;
ERROR 42000: Variable 'log_slow_filter' can't be set to the value of '1024'
SET @@global.log_slow_filter = @start_global_value;
