通过查看 SET EXPLAIN 输出,您可以确定某个索引是否为森林树索引。森林树索引在输出的 Index Name 字段中具有 FOT。
在部分 SET EXPLAIN 输出的以下示例中,gbasedbt.fot_idx 为森林树索引的名称。
Estimated Cost: 1 Estimated # of Rows Returned: 1 1) gbasedbt.t: INDEX PATH (1) Index Name: gbasedbt.fot_idx (FOT) Index Keys: c1 c2 (Serial, fragments: ALL) Lower Index Filter: gbasedbt.t.c1 = 1