26.3 sys 模式进度报告

以下sys模式视图为长期运行的事务提供进度报告:

processlist
session
x$processlist
x$session

假设启用了必需的工具和使用者,这些视图的progress列显示了支持进度报告的阶段所完成工作的百分比。

阶段进度报告要求启用events_stages_current使用者,以及需要其进度信息的工具。这些阶段的工具当前支持进度报告:

stage/sql/Copying to tmp table
stage/innodb/alter table (end)
stage/innodb/alter table (flush)
stage/innodb/alter table (insert)
stage/innodb/alter table (log apply index)
stage/innodb/alter table (log apply table)
stage/innodb/alter table (merge sort)
stage/innodb/alter table (read PK and internal sort)
stage/innodb/buffer pool load

对于不支持估计和完成的工作报告的阶段,或者如果未启用所需的工具或使用者,则progress列为NULL