Postgresql 数据类型点[]没有访问方法的默认运算符类;要点;

Postgresql 数据类型点[]没有访问方法的默认运算符类;要点;,postgresql,postgresql-10,Postgresql,Postgresql 10,为点[]列创建索引时遇到问题 create table test (pt point[]); // Table created create index pt_idx on test using gist (pt); // Error creating index 我得到的错误是: data type point[] has no default operator class for access method "gist" 相同的创建索引命令适用于点列,但不适用于点[]列。 我的postg

点[]
列创建索引时遇到问题

create table test (pt point[]);
// Table created
create index pt_idx on test using gist (pt);
// Error creating index
我得到的错误是:

data type point[] has no default operator class for access method "gist"
相同的创建索引命令适用于
列,但不适用于
点[]
列。 我的postgresql版本是10.11


我在这里遗漏了什么吗?

错误信息非常清楚:gist索引根本不支持数组或点(请参阅支持的数据类型和运算符)。您不能规范化表,这样就不需要数组了吗?您希望支持哪种查询?