兼容性判定
公开资料依据 · 建议 PoC 复核支持度partial
严重度major
置信度medium
依据规则my.partition.check_analyze
怎么改
对分区关系执行 ANALYZE;完整性校验改约束验证/业务校验
判定说明
ANALYZE 可针对分区关系,但无 MySQL CHECK/ANALYZE PARTITION 完整语法与返回表;建议 PoC 复核运维脚本
库侧 / 应用侧路径
库侧改造
可行:按目标统计与巡检机制重写
应用侧改造
不可行:分区运维属于数据库侧
推荐路线:db_side。验证建议:分区统计更新时间、执行计划和巡检告警链路核对
规则样例
ALTER TABLE sales ANALYZE PARTITION p2025
ALTER TABLE sales CHECK PARTITION p0,p1
ANALYZE TABLE sales
参考来源
- https://www.postgresql.org/docs/16/sql-analyze.html
- https://www.postgresql.org/docs/16/ddl-partitioning.html
- https://www.postgresql.org/docs/16/datatype.html
- https://www.postgresql.org/docs/16/functions.html
- https://www.postgresql.org/docs/16/sql-commands.html
- https://cloud.tencent.com/document/product/1376/126644
相关改造点
- MYSQL → postgresql 16 全部改造点
- postgresql 16 兼容性总览
- MYSQL 迁移国产库总览
- ORACLE ADD_MONTHS 函数 迁移 postgresql 16 怎么改
- ORACLE ALTER SESSION SET 会话参数 迁移 postgresql 16 怎么改
- ORACLE ANYDATA 动态类型列 迁移 postgresql 16 怎么改
- ORACLE ASCIISTR Unicode 转义函数 迁移 postgresql 16 怎么改
- ORACLE 关联数组(INDEX BY 表) 迁移 postgresql 16 怎么改
- ORACLE AT TIME ZONE 时区表达式 迁移 postgresql 16 怎么改