Skip to content

Conversation

ejortegau
Copy link

This PR addresses the feature request reported under bug #103779. Basically, it allows the client to obtain information about the default value of all variables.

It does so by adding column default_value to performance_schema.variables_info:

mysql> select variable_name, default_value from variables_info where variable_name = 'autocommit';
+---------------+---------------+
| variable_name | default_value |
+---------------+---------------+
| autocommit    | ON            |
+---------------+---------------+
1 row in set (0.00 sec)

mysql> select variable_name, default_value from variables_info where variable_name = 'innodb_buffer_pool_size';
+-------------------------+---------------+
| variable_name           | default_value |
+-------------------------+---------------+
| innodb_buffer_pool_size | 134217728     |
+-------------------------+---------------+
1 row in set (0.01 sec)

@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@ejortegau
Copy link
Author

I am withdrawing the PR, as I realized it is not providing the default value of the variable, but its current value. This adds no value, as this information is already available via perofrmance_schema.global_variables and SHOW GLOBAL VARIABLES.

I may try to fix this in and re-open, or create a new PR, in the future.

@ejortegau ejortegau closed this May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants