我无法从 pgsql 9.1 上包含 BOX 类型列的表中进行选择
create table test (t box);
CREATE TABLE
select * from test order by t;
ERROR: could not identify an ordering operator for type box
LINE 1: select * from test order by t;
^
TIP: Use an explicit ordering operator or modify the query.
我发现有一类运算符(box_ops)应该处理排序和相等性,甚至尝试为列创建显式索引。
create index testx on test using gist (t box_ops);
CREATE INDEX
但问题仍然存在。我错过了什么?谢谢!