Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Every sysvar has an associated help text, but it's only accessible as mysqld --help which is kind of a waste. It would be helpful to show it as a third column in INFORMATION_SCHEMA.GLOBAL_VARIABLES and INFORMATION_SCHEMA.SESSION_VARIABLES. For backward compatibility we'll hide this column if @@old_mode=NO_SYSVAR_HELP.
Alternatively, we could introduce a new table, say, INFORMATION_SCHEMA.SYSTEM_VARIABLES with all (global and session) variables, without their current values, but with the help, type, valid value range, etc.
Attachments
Issue Links
- relates to
-
MDEV-8579 Some sysvars in I_S are missing any meaningful help (comment) text
-
- Closed
-
at the end, I decided to keep old tables and create a new one instead:
MariaDB [test]> select * from information_schema.system_variables where variable_name='completion_type'\g
*************************** 1. row ***************************
VARIABLE_NAME: COMPLETION_TYPE
SESSION_VALUE: CHAIN
GLOBAL_VALUE: NO_CHAIN
GLOBAL_VALUE_ORIGIN: COMPILE-TIME
DEFAULT_VALUE: NO_CHAIN
VARIABLE_SCOPE: SESSION
VARIABLE_TYPE: ENUM
VARIABLE_COMMENT: The transaction completion type
NUMERIC_MIN_VALUE: NULL
NUMERIC_MAX_VALUE: NULL
NUMERIC_BLOCK_SIZE: NULL
ENUM_VALUE_LIST: NO_CHAIN,CHAIN,RELEASE
READ_ONLY: NO
COMMAND_LINE_ARGUMENT: REQUIRED
1 row in set (0.00 sec)