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-8579Some sysvars in I_S are missing any meaningful help (comment) text
if we extend existing I_S tables, then we can at the same time extend I_S.PLUGIN and I_S.COLLATION to show usage counters (that now only feedback plugin can show). In this case the better name for the old mode would be something like OLD_I_S_TABLES
Sergei Golubchik
added a comment - if we extend existing I_S tables, then we can at the same time extend I_S.PLUGIN and I_S.COLLATION to show usage counters (that now only feedback plugin can show). In this case the better name for the old mode would be something like OLD_I_S_TABLES
When doing this, we should also show the following:
Default value
How the value was set. One of
Default value, Set-by-config-file, Set-by-user, auto-configured (ie, tunned by the server depending on other values)
Michael Widenius
added a comment - When doing this, we should also show the following:
Default value
How the value was set. One of
Default value, Set-by-config-file, Set-by-user, auto-configured (ie, tunned by the server depending on other values)
Also missing if the global value is static or not.
some variables are set on startup (so static)
others can be changed at any time (so dynamic)
others can be changed only when replication is stopped (slave_parallel_workers in MySQL 5.6. There may be something similar in MariaDB). Indicating variables which can only be changed (or their behaviour is picked up) "at certain points in time" would also be useful.
Perhaps, adding a time of last_update would be useful. I've seen already with P_S that having the stats is great but if you don't know how long they have been configured that way it might be an issue. So perhaps an extra column of the form:
last_change TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP (or "boot time"...) might be useful.
Simon J Mudd
added a comment - Also missing if the global value is static or not.
some variables are set on startup (so static)
others can be changed at any time (so dynamic)
others can be changed only when replication is stopped (slave_parallel_workers in MySQL 5.6. There may be something similar in MariaDB). Indicating variables which can only be changed (or their behaviour is picked up) "at certain points in time" would also be useful.
Perhaps, adding a time of last_update would be useful. I've seen already with P_S that having the stats is great but if you don't know how long they have been configured that way it might be an issue. So perhaps an extra column of the form:
last_change TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP (or "boot time"...) might be useful.
Yes, I'll have the information about static/dynamic. But, probably, not the timestamp — this would have a rather high relative overhead (like 3x – 100x storage overhead, depending on the implementation).
Sergei Golubchik
added a comment - Yes, I'll have the information about static/dynamic. But, probably, not the timestamp — this would have a rather high relative overhead (like 3x – 100x storage overhead, depending on the implementation).
Sergei Golubchik
added a comment - 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)
People
Sergei Golubchik
Sergei Golubchik
Votes:
0Vote for this issue
Watchers:
4Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1229.7000002861023,"ttfb":288.2000002861023,"pageVisibility":"visible","entityId":35302,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"08ae182c-d0e5-4f25-8fcc-29d1f6205560","navigationType":0,"readyForUser":1322.3000001907349,"redirectCount":0,"resourceLoadedEnd":1295.9000000953674,"resourceLoadedStart":306.59999990463257,"resourceTiming":[{"duration":322,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":306.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":306.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":322.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":306.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":306.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":340.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":307.09999990463257,"connectEnd":307.09999990463257,"connectStart":307.09999990463257,"domainLookupEnd":307.09999990463257,"domainLookupStart":307.09999990463257,"fetchStart":307.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":307.09999990463257,"responseEnd":647.5999999046326,"responseStart":647.5999999046326,"secureConnectionStart":307.09999990463257},{"duration":425.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":307.30000019073486,"connectEnd":307.30000019073486,"connectStart":307.30000019073486,"domainLookupEnd":307.30000019073486,"domainLookupStart":307.30000019073486,"fetchStart":307.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":307.30000019073486,"responseEnd":733,"responseStart":733,"secureConnectionStart":307.30000019073486},{"duration":429.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":307.5,"connectEnd":307.5,"connectStart":307.5,"domainLookupEnd":307.5,"domainLookupStart":307.5,"fetchStart":307.5,"redirectEnd":0,"redirectStart":0,"requestStart":307.5,"responseEnd":737,"responseStart":737,"secureConnectionStart":307.5},{"duration":429.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":307.7000002861023,"connectEnd":307.7000002861023,"connectStart":307.7000002861023,"domainLookupEnd":307.7000002861023,"domainLookupStart":307.7000002861023,"fetchStart":307.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":307.7000002861023,"responseEnd":737.5,"responseStart":737.5,"secureConnectionStart":307.7000002861023},{"duration":430.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":307.90000009536743,"connectEnd":307.90000009536743,"connectStart":307.90000009536743,"domainLookupEnd":307.90000009536743,"domainLookupStart":307.90000009536743,"fetchStart":307.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":307.90000009536743,"responseEnd":738,"responseStart":738,"secureConnectionStart":307.90000009536743},{"duration":516.8000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":308.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":308.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":824.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":430.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":308.30000019073486,"connectEnd":308.30000019073486,"connectStart":308.30000019073486,"domainLookupEnd":308.30000019073486,"domainLookupStart":308.30000019073486,"fetchStart":308.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":308.30000019073486,"responseEnd":738.5,"responseStart":738.5,"secureConnectionStart":308.30000019073486},{"duration":516.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":308.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":308.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":825.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":430.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":308.59999990463257,"connectEnd":308.59999990463257,"connectStart":308.59999990463257,"domainLookupEnd":308.59999990463257,"domainLookupStart":308.59999990463257,"fetchStart":308.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":308.59999990463257,"responseEnd":739.0999999046326,"responseStart":739.0999999046326,"secureConnectionStart":308.59999990463257},{"duration":709.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":309.59999990463257,"connectEnd":309.59999990463257,"connectStart":309.59999990463257,"domainLookupEnd":309.59999990463257,"domainLookupStart":309.59999990463257,"fetchStart":309.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":309.59999990463257,"responseEnd":1018.8000001907349,"responseStart":1018.8000001907349,"secureConnectionStart":309.59999990463257},{"duration":984.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":309.59999990463257,"connectEnd":309.59999990463257,"connectStart":309.59999990463257,"domainLookupEnd":309.59999990463257,"domainLookupStart":309.59999990463257,"fetchStart":309.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":309.59999990463257,"responseEnd":1294.4000000953674,"responseStart":1294.4000000953674,"secureConnectionStart":309.59999990463257},{"duration":182.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":881.5,"connectEnd":881.5,"connectStart":881.5,"domainLookupEnd":881.5,"domainLookupStart":881.5,"fetchStart":881.5,"redirectEnd":0,"redirectStart":0,"requestStart":881.5,"responseEnd":1063.8000001907349,"responseStart":1063.8000001907349,"secureConnectionStart":881.5},{"duration":123.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1172.4000000953674,"connectEnd":1172.4000000953674,"connectStart":1172.4000000953674,"domainLookupEnd":1172.4000000953674,"domainLookupStart":1172.4000000953674,"fetchStart":1172.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1172.4000000953674,"responseEnd":1295.9000000953674,"responseStart":1295.9000000953674,"secureConnectionStart":1172.4000000953674},{"duration":206,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1222.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1222.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1428.2000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":103,"responseStart":288,"responseEnd":297,"domLoading":304,"domInteractive":1480,"domContentLoadedEventStart":1480,"domContentLoadedEventEnd":1535,"domComplete":1768,"loadEventStart":1768,"loadEventEnd":1770,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1429.5},{"name":"bigPipe.sidebar-id.end","time":1443.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1444.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1457.0999999046326},{"name":"activityTabFullyLoaded","time":1559.9000000953674}],"measures":[],"correlationId":"fae690a089e799","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":130,"dbReadsTimeInMs":11,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
if we extend existing I_S tables, then we can at the same time extend I_S.PLUGIN and I_S.COLLATION to show usage counters (that now only feedback plugin can show). In this case the better name for the old mode would be something like OLD_I_S_TABLES