On this page
63.2. 内置操作员类别
PostgreSQL 的核心发行版包括Table 63.1中显示的 SP-GiST 运算符类。
表 63.1. 内置 SP-GiST 操作员类别
Name | 索引数据类型 | Indexable Operators |
---|---|---|
kd_point_ops |
point |
<< <@ <^ >> >^ ~= |
quad_point_ops |
point |
<< <@ <^ >> >^ ~= |
range_ops |
任何范围类型 | && &< &> -|- << <@ = >> @> |
box_ops |
box |
<< &< && &> >> ~= @> <@ &<| <<| |>> |&> |
text_ops |
text |
< <= = > >= ~<=~ ~<~ ~>=~ ~>~ |
inet_ops |
inet , cidr |
&& >> >>= > >= <> << <<= < <= = |
在类型为point
的两个运算符类中,默认为quad_point_ops
。 kd_point_ops
支持相同的运算符,但使用不同的索引数据结构,在某些应用程序中可能提供更好的性能。