首页 > 解决方案 > 如何在 postgresql 中创建 n=3 的 btree 索引?

问题描述

我使用以下方法创建了一个 btree:

CREATE INDEX indexname ON students USING btree
(id); 

但我想创建一棵 n=3 的树。我不确定在 postgresql 中插入 n 值的位置:

CREATE INDEX indexname ON students USING btree(n=3) 
(id); 

不工作。

标签: postgresqlb-treedatabase-indexes

解决方案


推荐阅读