# Change history for the MySQL sys schema ## 1.5.0 (11/09/15) ### Improvements * The `format_bytes` function now shows no decimal places when outputting a simple bytes value * The `processlist`/`x$processlist` views where improved, changes include: * The `pid` and `program_name` of the connection are shown, if set within the `performance_schema.session_connect_attrs` table (**Contributed by Daniël van Eeden**) * Issue #50 - The current statement progress is reported via the new stage progress reporting within Performance Schema stages within 5.7 (such as ALTER TABLE progress reporting) * Issue #60 - A new `statement_latency` column was added to all versions, which reports the current statement latency with picosecond precision from the `performance_schema.events_statements_current` table, when enabled * Some transaction information was exposed, with the `trx_latency` (for the current or last transaction depending on `trx_state`), `trx_state` (ACTIVE, COMMITTED, ROLLED BACK), and `trx_autocommit` (YES/NO) columns * A new `metrics` view has been added. On 5.7 this provides a union view of the performance_schema.global_status and information_schema.innodb_metrics tables, along with P_S memory and the current time, as a single metrics output. On 5.6 it provides a union view of the information_schema.global_status and information_schema.innodb_metrics tables, along with the current time. (**Contributed by Jesper Wisborg Krogh**) * New `session`/`x$session` views have been added, which give the same output as the `processlist` view counterparts, but filtered to only show foreground connections (**Contributed by Morgan Tocker**) * A new `session_ssl_status` view was added, which shows the SSL version, ciper and session resuse statistics for each connection (**Contributed by Daniël van Eeden**) * A new `schema_auto_increment_columns` view was added, that shows statistics on each auto_incrment within the instance, including the `auto_increment_ratio`, so you can easily monitor how full specific auto_increment columns are (**Contributed by Shlomi Noach**) * A new `schema_redundant_indexes` view was added, that shows indexes made redundant (or duplicated) by other more dominant indexes. Also includes the the helper view `x$schema_flattened_keys`. (**Contributed by Shlomi Noach**) * New `schema_table_lock_waits`/`x$schema_table_lock_waits` views have been added, which show any sessions that are waiting for table level metadata locks, and the sessions that are blocking them. Resolves Git Issue #57, inspired by the suggestion from Daniël van Eeden * The `innodb_lock_waits` view had the following columns added to it, following a manually merged contribution from Shlomi Noach for a similar view * `wait_age_secs` - the current row lock wait time in seconds * `sql_kill_blocking_query` - the "KILL QUERY " command to run to kill the blocking session current statement * `sql_kill_blocking_connection` - the "KILL )` allows disabling any consumers matching the LIKE string. * `ps_setup_enable_consumers()` allows enabling any consumers matching the LIKE string. * Added procedures to show both enabled and disbled consumers or instruments individually, these are more useful for tooling than the `ps_setup_show_enabled`/`ps_setup_show_disabled` procedures which show all configuration in multiple result sets. (**Contributed by the MySQL QA Team**) * `ps_setup_show_disabled_consumers` shows only disabled consumers. * `ps_setup_show_disabled_instruments` shows only disabled instruments. * `ps_setup_show_enabled_consumers` shows only enabled consumers. * `ps_setup_show_enabled_instruments` shows only enabled instruments. ### Bug Fixes * Running the installation scripts sometimes failed because of the comment format. (#1) (**Contributed by Joe Grasse**) * Some views did not work with the ERROR_FOR_DIVISION_BY_ZERO SQL mode. (#6) (**Contributed by Joe Grasse**) * On Windows the `ps_thread_stack()` stored function failed to escape file path backslashes correctly within the JSON output. ## 1.0.0 (11/04/2014)