支援版本:目前 (16) / 15 / 14 / 13 / 12
開發版本:開發
不支援版本:11 / 10 / 9.6 / 9.5 / 9.4

70.2. 內建運算子類別 #

核心 PostgreSQL 發行版包含 表 70.1 中所示的 GIN 運算子類別。(附錄 F 中描述的一些選用模組提供了其他 GIN 運算子類別。)

表 70.1。內建 GIN 運算子類別

名稱 可索引運算子
array_ops && (anyarray,anyarray)
@> (anyarray,anyarray)
<@ (anyarray,anyarray)
= (anyarray,anyarray)
jsonb_ops @> (jsonb,jsonb)
@? (jsonb,jsonpath)
@@ (jsonb,jsonpath)
? (jsonb,text)
?| (jsonb,text[])
?& (jsonb,text[])
jsonb_path_ops @> (jsonb,jsonb)
@? (jsonb,jsonpath)
@@ (jsonb,jsonpath)
tsvector_ops @@ (tsvector,tsquery)
@@@ (tsvector,tsquery)

對於類型 jsonb 的兩個運算子類別,jsonb_ops 是預設值。 jsonb_path_ops 支援較少的運算子,但提供這些運算子更好的效能。有關詳細資訊,請參閱 第 8.14.4 節

提交修正

如果您在文件中看到任何不正確、與您對特定功能的體驗不符或需要進一步說明的地方,請使用 此表單 回報文件問題。