gin/jsonb_ops (class)
GIN operator class for jsonb; member of jsonb_ops.
当前阅读 PG 18·选择有来源记录的版本
此版本暂无所选语言的定义,以下显示原始英文内容。
- Object kind
- Operator class
- Index AM
- GIN
- Input type
- jsonb
- Stored key type
- text
- Default class
- yes
- aliases
- jsonb_ops, gin/jsonb_ops
- classes
- map[default:t family:jsonb_ops family_slug:family-gin-jsonb_ops input_type:jsonb key_type:text method:gin name:jsonb_ops slug:class-gin-jsonb_ops source_oid:]
- signature
- gin/jsonb_ops
- source oid
- 未知
版本定义 PG 18
GIN operator class for jsonb; member of jsonb_ops.
Family operator strategies
| Operator overload | Strategy | Purpose | Ordering family | Membership scope | Source description |
|---|---|---|---|---|---|
| @>(jsonb,jsonb) | 7 | search | Class input pair | contains | |
| ?(jsonb,text) | 9 | search | Family member | key exists | |
| ?|(jsonb,_text) | 10 | search | Family member | any key exists | |
| ?&(jsonb,_text) | 11 | search | Family member | all keys exist | |
| @?(jsonb,jsonpath) | 15 | search | Family member | jsonpath exists | |
| @@(jsonb,jsonpath) | 16 | search | Family member | jsonpath match |
Family support functions
| Support number | Left type | Right type | Function signature | Result type |
|---|---|---|---|---|
| 1 | jsonb | jsonb | gin_compare_jsonb(text,text) | int4 |
| 2 | jsonb | jsonb | gin_extract_jsonb(jsonb,internal,internal) | internal |
| 3 | jsonb | jsonb | gin_extract_jsonb_query(jsonb,internal,int2,internal,internal,internal,internal) | internal |
| 4 | jsonb | jsonb | gin_consistent_jsonb(internal,int2,jsonb,int4,internal,internal,internal,internal) | bool |
| 6 | jsonb | jsonb | gin_triconsistent_jsonb(internal,int2,jsonb,int4,internal,internal,internal) | char |
Classes in this family
比较版本
完整来源事实
class
{"default":"t","family":"jsonb_ops","input_type":"jsonb","key_type":"text","method":"gin","name":"jsonb_ops"}operators
map[description:contains family:jsonb_ops family_slug:family-gin-jsonb_ops left_type:jsonb method:gin operator:@>(jsonb,jsonb) operator_slug:op-403e-jsonb-jsonb purpose:search result_type:bool right_type:jsonb sort_family: sort_family_slug: strategy:7], map[description:key exists family:jsonb_ops family_slug:family-gin-jsonb_ops left_type:jsonb method:gin operator:?(jsonb,text) operator_slug:op-3f-jsonb-text purpose:search result_type:bool right_type:text sort_family: sort_family_slug: strategy:9], map[description:any key exists family:jsonb_ops family_slug:family-gin-jsonb_ops left_type:jsonb method:gin operator:?|(jsonb,_text) operator_slug:op-3f7c-jsonb-_text purpose:search result_type:bool right_type:_text sort_family: sort_family_slug: strategy:10], map[description:all keys exist family:jsonb_ops family_slug:family-gin-jsonb_ops left_type:jsonb method:gin operator:?&(jsonb,_text) operator_slug:op-3f26-jsonb-_text purpose:search result_type:bool right_type:_text sort_family: sort_family_slug: strategy:11], map[description:jsonpath exists family:jsonb_ops family_slug:family-gin-jsonb_ops left_type:jsonb method:gin operator:@?(jsonb,jsonpath) operator_slug:op-403f-jsonb-jsonpath purpose:search result_type:bool right_type:jsonpath sort_family: sort_family_slug: strategy:15], map[description:jsonpath match family:jsonb_ops family_slug:family-gin-jsonb_ops left_type:jsonb method:gin operator:@@(jsonb,jsonpath) operator_slug:op-4040-jsonb-jsonpath purpose:search result_type:bool right_type:jsonpath sort_family: sort_family_slug: strategy:16]
support functions
map[family:jsonb_ops family_slug:family-gin-jsonb_ops function:gin_compare_jsonb(text,text) left_type:jsonb method:gin number:1 result_type:int4 right_type:jsonb], map[family:jsonb_ops family_slug:family-gin-jsonb_ops function:gin_extract_jsonb(jsonb,internal,internal) left_type:jsonb method:gin number:2 result_type:internal right_type:jsonb], map[family:jsonb_ops family_slug:family-gin-jsonb_ops function:gin_extract_jsonb_query(jsonb,internal,int2,internal,internal,internal,internal) left_type:jsonb method:gin number:3 result_type:internal right_type:jsonb], map[family:jsonb_ops family_slug:family-gin-jsonb_ops function:gin_consistent_jsonb(internal,int2,jsonb,int4,internal,internal,internal,internal) left_type:jsonb method:gin number:4 result_type:bool right_type:jsonb], map[family:jsonb_ops family_slug:family-gin-jsonb_ops function:gin_triconsistent_jsonb(internal,int2,jsonb,int4,internal,internal,internal) left_type:jsonb method:gin number:6 result_type:char right_type:jsonb]
来源引用
- Matching PostgreSQL source archive
- PostgreSQL 18 English manual: indexes-opclass.html
- PostgreSQL 18 English manual: catalog-pg-opclass.html
- PostgreSQL 18 English manual: catalog-pg-amop.html
- PostgreSQL 18 English manual: catalog-pg-amproc.html
- PostgreSQL 18 English manual: datatype-json.html
- 固定 PostgreSQL 源码归档
定义来源
center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
正文语言: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f