-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-6138 show sysvar's help in I_S tables
INFORMATION_SCHEMA.SYSTEM_VARIABLES
- Loading branch information
Showing
36 changed files
with
12,324 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'aria' AND support IN ('YES', 'DEFAULT', 'ENABLED')`) | ||
{ | ||
--skip Test requires Aria | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--vertical_results | ||
|
||
# because its current value is printed below | ||
set timestamp=unix_timestamp('2014-09-01 13:40:23'); | ||
# ditto | ||
set pseudo_thread_id=10; | ||
# to show session != global, and doesn't affect global_value_origin | ||
set sql_mode=ansi_quotes; | ||
# global_value_origin=SQL | ||
set global div_precision_increment=5; | ||
--replace_regex /^\/\S+/PATH/ | ||
--replace_result $MASTER_MYPORT MASTER_MYPORT | ||
select * from information_schema.system_variables | ||
where variable_name not like 'aria%' and | ||
variable_name not like 'debug%' and | ||
variable_name not like 'wsrep%' and | ||
variable_name not in ('large_files_support', | ||
'lower_case_file_system', | ||
'open_files_limit', | ||
'system_time_zone', | ||
'version_comment', | ||
'version_compile_machine', 'version_compile_os', | ||
'version_malloc_library', 'version' | ||
) | ||
order by variable_name; | ||
# now various metadata but no values, for variables where | ||
# values change often | ||
select VARIABLE_NAME, VARIABLE_SCOPE, VARIABLE_TYPE, VARIABLE_COMMENT, | ||
NUMERIC_MIN_VALUE, NUMERIC_MAX_VALUE, NUMERIC_BLOCK_SIZE, | ||
ENUM_VALUE_LIST, READ_ONLY, COMMAND_LINE_ARGUMENT | ||
from information_schema.system_variables | ||
where variable_name in ('large_files_support', | ||
'lower_case_file_system', | ||
'open_files_limit', | ||
'system_time_zone', | ||
'version_comment', | ||
'version_compile_machine', 'version_compile_os', | ||
'version_malloc_library', 'version' | ||
) | ||
order by variable_name; | ||
set global div_precision_increment=default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--auto-increment-increment=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use information_schema; | ||
select variable_name, s.variable_value, v.global_value | ||
from global_variables s join system_variables v using (variable_name) | ||
where not (s.variable_value <=> v.global_value); | ||
variable_name variable_value global_value | ||
select variable_name, s.variable_value, v.session_value | ||
from session_variables s join system_variables v using (variable_name) | ||
where v.variable_scope != 'GLOBAL' and | ||
not (s.variable_value <=> v.session_value); | ||
variable_name variable_value session_value |
Oops, something went wrong.