pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
PostgreSQL 核心发行版包含 表 61.1 所示的 GIN 操作符类。 (在 附录 F 中描述的一些可选模块还提供额外的 GIN 操作符类。)
表 61.1. 内置 GIN 操作符类
| 名称 | 被索引数据类型 | 可索引操作符 |
|---|---|---|
_abstime_ops |
abstime[] |
&& <@ = @> |
_bit_ops |
bit[] |
&& <@ = @> |
_bool_ops |
boolean[] |
&& <@ = @> |
_bpchar_ops |
character[] |
&& <@ = @> |
_bytea_ops |
bytea[] |
&& <@ = @> |
_char_ops |
"char"[] |
&& <@ = @> |
_cidr_ops |
cidr[] |
&& <@ = @> |
_date_ops |
date[] |
&& <@ = @> |
_float4_ops |
float4[] |
&& <@ = @> |
_float8_ops |
float8[] |
&& <@ = @> |
_inet_ops |
inet[] |
&& <@ = @> |
_int2_ops |
smallint[] |
&& <@ = @> |
_int4_ops |
integer[] |
&& <@ = @> |
_int8_ops |
bigint[] |
&& <@ = @> |
_interval_ops |
interval[] |
&& <@ = @> |
_macaddr_ops |
macaddr[] |
&& <@ = @> |
_money_ops |
money[] |
&& <@ = @> |
_name_ops |
name[] |
&& <@ = @> |
_numeric_ops |
numeric[] |
&& <@ = @> |
_oid_ops |
oid[] |
&& <@ = @> |
_oidvector_ops |
oidvector[] |
&& <@ = @> |
_reltime_ops |
reltime[] |
&& <@ = @> |
_text_ops |
text[] |
&& <@ = @> |
_time_ops |
time[] |
&& <@ = @> |
_timestamp_ops |
timestamp[] |
&& <@ = @> |
_timestamptz_ops |
timestamp with time zone[] |
&& <@ = @> |
_timetz_ops |
time with time zone[] |
&& <@ = @> |
_tinterval_ops |
tinterval[] |
&& <@ = @> |
_varbit_ops |
bit varying[] |
&& <@ = @> |
_varchar_ops |
character varying[] |
&& <@ = @> |
jsonb_ops |
jsonb |
? ?& ?| @> |
jsonb_path_ops |
jsonb |
@> |
tsvector_ops |
tsvector |
@@ @@@ |
在用于类型 jsonb 的两个操作符类中,jsonb_ops 是默认项。jsonb_path_ops 支持的操作符较少,但对这些操作符提供更好的性能。 详见 第 8.14.4 节。
译文有误、术语不当或页面显示问题,请到译文仓库 pgsty/pgdoc 报告译文问题。 英文原文本身的问题,请在当前版本的对应页面向上游反馈;上游不再修订已结束维护的版本。