mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
merge mysql-next-mr --> mysql-5.1-rpl-merge
Conflicts: Text conflict in sql/log.cc Text conflict in sql/slave.cc Text conflict in sql/sql_base.cc
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
create table t1 (test_name text);
|
||||
create table t2 (variable_name text);
|
||||
load data infile "MYSQLTEST_VARDIR/tmp/sys_vars.all_vars.txt" into table t1;
|
||||
select variable_name as `There should be *no* variables listed below:`
|
||||
from information_schema.global_variables
|
||||
left join t1 on variable_name=test_name where
|
||||
test_name is null
|
||||
union
|
||||
select variable_name from information_schema.session_variables
|
||||
left join t1 on variable_name=test_name where
|
||||
test_name is null;
|
||||
insert into t2 select variable_name from information_schema.global_variables;
|
||||
insert into t2 select variable_name from information_schema.session_variables;
|
||||
update t2 set variable_name= replace(variable_name, "PERFORMANCE_SCHEMA_", "PFS_");
|
||||
select variable_name as `There should be *no* long test name listed below:` from t2
|
||||
where length(variable_name) > 50;
|
||||
There should be *no* long test name listed below:
|
||||
select variable_name as `There should be *no* variables listed below:` from t2
|
||||
left join t1 on variable_name=test_name where test_name is null;
|
||||
There should be *no* variables listed below:
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
|
@@ -6,19 +6,33 @@ SET @global_start_value = @@global.engine_condition_pushdown;
|
||||
SELECT @global_start_value;
|
||||
@global_start_value
|
||||
1
|
||||
select @old_session_opt_switch:=@@session.optimizer_switch,
|
||||
@old_global_opt_switch:=@@global.optimizer_switch;
|
||||
@old_session_opt_switch:=@@session.optimizer_switch @old_global_opt_switch:=@@global.optimizer_switch
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
'#--------------------FN_DYNVARS_028_01------------------------#'
|
||||
SET @@session.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SET @@session.engine_condition_pushdown = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SET @@global.engine_condition_pushdown = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
'#---------------------FN_DYNVARS_028_02-------------------------#'
|
||||
SET engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@engine_condition_pushdown;
|
||||
@@engine_condition_pushdown
|
||||
1
|
||||
@@ -29,27 +43,39 @@ ERROR 42S02: Unknown table 'local' in field list
|
||||
SELECT global.engine_condition_pushdown;
|
||||
ERROR 42S02: Unknown table 'global' in field list
|
||||
SET session engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET global engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
'#--------------------FN_DYNVARS_028_03------------------------#'
|
||||
SET @@session.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@session.engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
@@ -88,11 +114,17 @@ SET @@global.engine_condition_pushdown =
|
||||
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '<27>FF'
|
||||
'#-------------------FN_DYNVARS_028_05----------------------------#'
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SET @@session.engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown AS res_is_0;
|
||||
res_is_0
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown AS res_is_1;
|
||||
res_is_1
|
||||
1
|
||||
@@ -126,43 +158,133 @@ VARIABLE_VALUE
|
||||
ON
|
||||
'#---------------------FN_DYNVARS_028_08-------------------------#'
|
||||
SET @@session.engine_condition_pushdown = OFF;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@session.engine_condition_pushdown = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = OFF;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
'#---------------------FN_DYNVARS_028_09----------------------#'
|
||||
SET @@session.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@session.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
Check that @@engine_condition_pushdown influences
|
||||
@@optimizer_switch and vice-versa
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set @@session.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
1 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set @@session.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set @@global.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 1 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
set @@global.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set @@session.optimizer_switch = "engine_condition_pushdown=on";
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
1 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set @@session.optimizer_switch = "engine_condition_pushdown=off";
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set @@global.optimizer_switch = "engine_condition_pushdown=on";
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 1 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
set @@global.optimizer_switch = "engine_condition_pushdown=off";
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
SET @@session.engine_condition_pushdown = @session_start_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = @global_start_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MySQL 7.0. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
set @session.optimizer_switch=@old_session_opt_switch,
|
||||
@@global.optimizer_switch=@old_global_opt_switch;
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@session.engine_condition_pushdown @@global.engine_condition_pushdown @@session.optimizer_switch @@global.optimizer_switch
|
||||
1 1 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
|
@@ -1,45 +1,45 @@
|
||||
SET @start_global_value = @@global.optimizer_switch;
|
||||
SELECT @start_global_value;
|
||||
@start_global_value
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
select @@global.optimizer_switch;
|
||||
@@global.optimizer_switch
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
select @@session.optimizer_switch;
|
||||
@@session.optimizer_switch
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
show global variables like 'optimizer_switch';
|
||||
Variable_name Value
|
||||
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
show session variables like 'optimizer_switch';
|
||||
Variable_name Value
|
||||
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
select * from information_schema.global_variables where variable_name='optimizer_switch';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
OPTIMIZER_SWITCH index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
OPTIMIZER_SWITCH index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
select * from information_schema.session_variables where variable_name='optimizer_switch';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
OPTIMIZER_SWITCH index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
OPTIMIZER_SWITCH index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
set global optimizer_switch=10;
|
||||
select @@global.optimizer_switch;
|
||||
@@global.optimizer_switch
|
||||
index_merge=off,index_merge_union=on,index_merge_sort_union=off,index_merge_intersection=on
|
||||
index_merge=off,index_merge_union=on,index_merge_sort_union=off,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set session optimizer_switch=5;
|
||||
select @@session.optimizer_switch;
|
||||
@@session.optimizer_switch
|
||||
index_merge=on,index_merge_union=off,index_merge_sort_union=on,index_merge_intersection=off
|
||||
index_merge=on,index_merge_union=off,index_merge_sort_union=on,index_merge_intersection=off,engine_condition_pushdown=off
|
||||
set global optimizer_switch="index_merge_sort_union=on";
|
||||
select @@global.optimizer_switch;
|
||||
@@global.optimizer_switch
|
||||
index_merge=off,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
index_merge=off,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set session optimizer_switch="index_merge=off";
|
||||
select @@session.optimizer_switch;
|
||||
@@session.optimizer_switch
|
||||
index_merge=off,index_merge_union=off,index_merge_sort_union=on,index_merge_intersection=off
|
||||
index_merge=off,index_merge_union=off,index_merge_sort_union=on,index_merge_intersection=off,engine_condition_pushdown=off
|
||||
set session optimizer_switch="default";
|
||||
select @@session.optimizer_switch;
|
||||
@@session.optimizer_switch
|
||||
index_merge=off,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
index_merge=off,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=off
|
||||
set global optimizer_switch=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'optimizer_switch'
|
||||
set global optimizer_switch=1e1;
|
||||
@@ -51,4 +51,4 @@ ERROR 42000: Variable 'optimizer_switch' can't be set to the value of 'foobar'
|
||||
SET @@global.optimizer_switch = @start_global_value;
|
||||
SELECT @@global.optimizer_switch;
|
||||
@@global.optimizer_switch
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
|
23
mysql-test/suite/sys_vars/r/performance_schema_basic.result
Normal file
23
mysql-test/suite/sys_vars/r/performance_schema_basic.result
Normal file
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema;
|
||||
@@global.performance_schema
|
||||
1
|
||||
select @@session.performance_schema;
|
||||
ERROR HY000: Variable 'performance_schema' is a GLOBAL variable
|
||||
show global variables like 'performance_schema';
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
show session variables like 'performance_schema';
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA ON
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA ON
|
||||
set global performance_schema=1;
|
||||
ERROR HY000: Variable 'performance_schema' is a read only variable
|
||||
set session performance_schema=1;
|
||||
ERROR HY000: Variable 'performance_schema' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_events_waits_history_long_size;
|
||||
@@global.performance_schema_events_waits_history_long_size
|
||||
15000
|
||||
select @@session.performance_schema_events_waits_history_long_size;
|
||||
ERROR HY000: Variable 'performance_schema_events_waits_history_long_size' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_events_waits_history_long_size';
|
||||
Variable_name Value
|
||||
performance_schema_events_waits_history_long_size 15000
|
||||
show session variables like 'performance_schema_events_waits_history_long_size';
|
||||
Variable_name Value
|
||||
performance_schema_events_waits_history_long_size 15000
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_events_waits_history_long_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE 15000
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_events_waits_history_long_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE 15000
|
||||
set global performance_schema_events_waits_history_long_size=1;
|
||||
ERROR HY000: Variable 'performance_schema_events_waits_history_long_size' is a read only variable
|
||||
set session performance_schema_events_waits_history_long_size=1;
|
||||
ERROR HY000: Variable 'performance_schema_events_waits_history_long_size' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_events_waits_history_size;
|
||||
@@global.performance_schema_events_waits_history_size
|
||||
15
|
||||
select @@session.performance_schema_events_waits_history_size;
|
||||
ERROR HY000: Variable 'performance_schema_events_waits_history_size' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_events_waits_history_size';
|
||||
Variable_name Value
|
||||
performance_schema_events_waits_history_size 15
|
||||
show session variables like 'performance_schema_events_waits_history_size';
|
||||
Variable_name Value
|
||||
performance_schema_events_waits_history_size 15
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_events_waits_history_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE 15
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_events_waits_history_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE 15
|
||||
set global performance_schema_events_waits_history_size=1;
|
||||
ERROR HY000: Variable 'performance_schema_events_waits_history_size' is a read only variable
|
||||
set session performance_schema_events_waits_history_size=1;
|
||||
ERROR HY000: Variable 'performance_schema_events_waits_history_size' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_cond_classes;
|
||||
@@global.performance_schema_max_cond_classes
|
||||
123
|
||||
select @@session.performance_schema_max_cond_classes;
|
||||
ERROR HY000: Variable 'performance_schema_max_cond_classes' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_cond_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_classes 123
|
||||
show session variables like 'performance_schema_max_cond_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_classes 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_cond_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_COND_CLASSES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_cond_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_COND_CLASSES 123
|
||||
set global performance_schema_max_cond_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_cond_classes' is a read only variable
|
||||
set session performance_schema_max_cond_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_cond_classes' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_cond_instances;
|
||||
@@global.performance_schema_max_cond_instances
|
||||
123
|
||||
select @@session.performance_schema_max_cond_instances;
|
||||
ERROR HY000: Variable 'performance_schema_max_cond_instances' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_cond_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_instances 123
|
||||
show session variables like 'performance_schema_max_cond_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_instances 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_cond_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_COND_INSTANCES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_cond_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_COND_INSTANCES 123
|
||||
set global performance_schema_max_cond_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_cond_instances' is a read only variable
|
||||
set session performance_schema_max_cond_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_cond_instances' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_file_classes;
|
||||
@@global.performance_schema_max_file_classes
|
||||
123
|
||||
select @@session.performance_schema_max_file_classes;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_classes' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_file_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_file_classes 123
|
||||
show session variables like 'performance_schema_max_file_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_file_classes 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_file_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_FILE_CLASSES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_file_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_FILE_CLASSES 123
|
||||
set global performance_schema_max_file_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_classes' is a read only variable
|
||||
set session performance_schema_max_file_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_classes' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_file_handles;
|
||||
@@global.performance_schema_max_file_handles
|
||||
123
|
||||
select @@session.performance_schema_max_file_handles;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_handles' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_file_handles';
|
||||
Variable_name Value
|
||||
performance_schema_max_file_handles 123
|
||||
show session variables like 'performance_schema_max_file_handles';
|
||||
Variable_name Value
|
||||
performance_schema_max_file_handles 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_file_handles';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_FILE_HANDLES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_file_handles';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_FILE_HANDLES 123
|
||||
set global performance_schema_max_file_handles=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_handles' is a read only variable
|
||||
set session performance_schema_max_file_handles=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_handles' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_file_instances;
|
||||
@@global.performance_schema_max_file_instances
|
||||
123
|
||||
select @@session.performance_schema_max_file_instances;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_instances' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_file_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_file_instances 123
|
||||
show session variables like 'performance_schema_max_file_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_file_instances 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_file_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_file_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES 123
|
||||
set global performance_schema_max_file_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_instances' is a read only variable
|
||||
set session performance_schema_max_file_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_file_instances' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_mutex_classes;
|
||||
@@global.performance_schema_max_mutex_classes
|
||||
123
|
||||
select @@session.performance_schema_max_mutex_classes;
|
||||
ERROR HY000: Variable 'performance_schema_max_mutex_classes' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_mutex_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_classes 123
|
||||
show session variables like 'performance_schema_max_mutex_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_classes 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_mutex_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_mutex_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES 123
|
||||
set global performance_schema_max_mutex_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_mutex_classes' is a read only variable
|
||||
set session performance_schema_max_mutex_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_mutex_classes' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_mutex_instances;
|
||||
@@global.performance_schema_max_mutex_instances
|
||||
123
|
||||
select @@session.performance_schema_max_mutex_instances;
|
||||
ERROR HY000: Variable 'performance_schema_max_mutex_instances' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_mutex_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_instances 123
|
||||
show session variables like 'performance_schema_max_mutex_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_instances 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_mutex_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_mutex_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES 123
|
||||
set global performance_schema_max_mutex_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_mutex_instances' is a read only variable
|
||||
set session performance_schema_max_mutex_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_mutex_instances' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_rwlock_classes;
|
||||
@@global.performance_schema_max_rwlock_classes
|
||||
123
|
||||
select @@session.performance_schema_max_rwlock_classes;
|
||||
ERROR HY000: Variable 'performance_schema_max_rwlock_classes' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_rwlock_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_classes 123
|
||||
show session variables like 'performance_schema_max_rwlock_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_classes 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_rwlock_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_rwlock_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES 123
|
||||
set global performance_schema_max_rwlock_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_rwlock_classes' is a read only variable
|
||||
set session performance_schema_max_rwlock_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_rwlock_classes' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_rwlock_instances;
|
||||
@@global.performance_schema_max_rwlock_instances
|
||||
123
|
||||
select @@session.performance_schema_max_rwlock_instances;
|
||||
ERROR HY000: Variable 'performance_schema_max_rwlock_instances' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_rwlock_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_instances 123
|
||||
show session variables like 'performance_schema_max_rwlock_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_instances 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_rwlock_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_rwlock_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES 123
|
||||
set global performance_schema_max_rwlock_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_rwlock_instances' is a read only variable
|
||||
set session performance_schema_max_rwlock_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_rwlock_instances' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_table_handles;
|
||||
@@global.performance_schema_max_table_handles
|
||||
123
|
||||
select @@session.performance_schema_max_table_handles;
|
||||
ERROR HY000: Variable 'performance_schema_max_table_handles' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_table_handles';
|
||||
Variable_name Value
|
||||
performance_schema_max_table_handles 123
|
||||
show session variables like 'performance_schema_max_table_handles';
|
||||
Variable_name Value
|
||||
performance_schema_max_table_handles 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_table_handles';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_table_handles';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES 123
|
||||
set global performance_schema_max_table_handles=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_table_handles' is a read only variable
|
||||
set session performance_schema_max_table_handles=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_table_handles' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_table_instances;
|
||||
@@global.performance_schema_max_table_instances
|
||||
123
|
||||
select @@session.performance_schema_max_table_instances;
|
||||
ERROR HY000: Variable 'performance_schema_max_table_instances' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_table_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_table_instances 123
|
||||
show session variables like 'performance_schema_max_table_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_table_instances 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_table_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_table_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES 123
|
||||
set global performance_schema_max_table_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_table_instances' is a read only variable
|
||||
set session performance_schema_max_table_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_table_instances' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_thread_classes;
|
||||
@@global.performance_schema_max_thread_classes
|
||||
123
|
||||
select @@session.performance_schema_max_thread_classes;
|
||||
ERROR HY000: Variable 'performance_schema_max_thread_classes' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_thread_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_classes 123
|
||||
show session variables like 'performance_schema_max_thread_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_classes 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_thread_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_thread_classes';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES 123
|
||||
set global performance_schema_max_thread_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_thread_classes' is a read only variable
|
||||
set session performance_schema_max_thread_classes=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_thread_classes' is a read only variable
|
@@ -0,0 +1,23 @@
|
||||
select @@global.performance_schema_max_thread_instances;
|
||||
@@global.performance_schema_max_thread_instances
|
||||
123
|
||||
select @@session.performance_schema_max_thread_instances;
|
||||
ERROR HY000: Variable 'performance_schema_max_thread_instances' is a GLOBAL variable
|
||||
show global variables like 'performance_schema_max_thread_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_instances 123
|
||||
show session variables like 'performance_schema_max_thread_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_instances 123
|
||||
select * from information_schema.global_variables
|
||||
where variable_name='performance_schema_max_thread_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES 123
|
||||
select * from information_schema.session_variables
|
||||
where variable_name='performance_schema_max_thread_instances';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES 123
|
||||
set global performance_schema_max_thread_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_thread_instances' is a read only variable
|
||||
set session performance_schema_max_thread_instances=1;
|
||||
ERROR HY000: Variable 'performance_schema_max_thread_instances' is a read only variable
|
Reference in New Issue
Block a user