↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / Operator Families

gin/jsonb_ops (family)

GIN operator family containing 1 classes, 6 operator strategies and 5 support functions in this source build.

Reading PG 18·Select a recorded version

Object kind
Operator family
Index AM
GIN
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
4036

Definition PG 18

GIN operator family containing 1 classes, 6 operator strategies and 5 support functions in this source build.

Family operator strategies

Operator overloadStrategyPurposeOrdering familyMembership scopeSource description
@>(jsonb,jsonb)7searchFamily membercontains
?(jsonb,text)9searchFamily memberkey exists
?|(jsonb,_text)10searchFamily memberany key exists
?&(jsonb,_text)11searchFamily memberall keys exist
@?(jsonb,jsonpath)15searchFamily memberjsonpath exists
@@(jsonb,jsonpath)16searchFamily memberjsonpath match

Family support functions

Support numberLeft typeRight typeFunction signatureResult type
1jsonbjsonbgin_compare_jsonb(text,text)int4
2jsonbjsonbgin_extract_jsonb(jsonb,internal,internal)internal
3jsonbjsonbgin_extract_jsonb_query(jsonb,internal,int2,internal,internal,internal,internal)internal
4jsonbjsonbgin_consistent_jsonb(internal,int2,jsonb,int4,internal,internal,internal,internal)bool
6jsonbjsonbgin_triconsistent_jsonb(internal,int2,jsonb,int4,internal,internal,internal)char

Classes in this family

ClassInput typeKey typeDefault
jsonb_opsjsonbtextyes

Compare versions

Complete source facts

family

{"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]

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f