영향 대상tidb_stats_update_during_ddl을 활성화한 TiDB 환경
- Support ANALYZE embedded in DDL statements #57948 @ terry1purcell @ AilinKid
This feature applies to the following types of DDL statements:
- DDL statements that create new indexes: ADD INDEX
- DDL statements that reorganize existing indexes: MODIFY COLUMN and CHANGE COLUMN
When this feature is enabled, TiDB automatically runs an ANALYZE (statistics collection) operation before the new or reorganized index becomes visible to users. This prevents inaccurate optimizer estimates and potential plan changes caused by temporarily unavailable statistics after index creation or reorganization.
For more information, see documentation .
docs.pingcap.com/tidb/stable/release-8.5.4