database compatibility assessment

ORACLE BITMAP 位图索引 迁移 postgresql 16 怎么改

迁衡基于规则 ora.index.bitmap 分析 ORACLE BITMAP 位图索引 到 postgresql 16 的兼容性、改写路径与验证建议。

兼容性判定

支持度none
严重度major
置信度high
依据规则ora.index.bitmap

怎么改

需按命中位置逐条评估改写

判定说明

原生无 Oracle BITMAP 索引,改普通/表达式/部分索引并压测

库侧 / 应用侧路径

库侧改造

需人工确认改造边界

应用侧改造

需人工确认改造边界

推荐路线:case_by_case。验证建议:通常改普通 B-tree 索引并压测;低基数字段组合过滤在分布式目标上可能需要改查询或物化汇总。

规则样例

CREATE BITMAP INDEX idx_bill_status ON bill(status)
CREATE BITMAP INDEX idx_join ON sales(cust_id) FROM sales, customer WHERE sales.cust_id = customer.id
CREATE INDEX idx_bill_status ON bill(status)