↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Operator Families

hash/varchar_pattern_ops (class)

Hash operator class for text; member of text_pattern_ops.

Reading PG 18·Select a recorded version

Object kind
Operator class
Index AM
Hash
Input type
text
Stored key type
Same as input type (catalog zero)
Default class
no
aliases
varchar_pattern_ops, hash/varchar_pattern_ops
signature
hash/varchar_pattern_ops
source oid
Unknown

Definition PG 18

Hash operator class for text; member of text_pattern_ops.

Family operator strategies

Operator overloadStrategyPurposeOrdering familyMembership scopeSource description
=(text,text)1searchClass input pairequal

Family support functions

Support numberLeft typeRight typeFunction signatureResult type
1texttexthashtext(text)int4
2texttexthashtextextended(text,int8)int8

Classes in this family

ClassInput typeKey typeDefault
text_pattern_opstextSame as input typeno
varchar_pattern_opstextSame as input typeno

Compare versions

Complete source facts

class

{"default":"f","family":"text_pattern_ops","input_type":"text","key_type":"none","method":"hash","name":"varchar_pattern_ops"}

classes

map[default:f family:text_pattern_ops family_slug:family-hash-text_pattern_ops input_type:text key_type:none method:hash name:text_pattern_ops slug:class-hash-text_pattern_ops source_oid:], map[default:f family:text_pattern_ops family_slug:family-hash-text_pattern_ops input_type:text key_type:none method:hash name:varchar_pattern_ops slug:class-hash-varchar_pattern_ops source_oid:]

operators

map[description:equal family:text_pattern_ops family_slug:family-hash-text_pattern_ops left_type:text method:hash operator:=(text,text) operator_slug:op-3d-text-text purpose:search result_type:bool right_type:text sort_family: sort_family_slug: strategy:1]

support functions

map[family:text_pattern_ops family_slug:family-hash-text_pattern_ops function:hashtext(text) left_type:text method:hash number:1 result_type:int4 right_type:text], map[family:text_pattern_ops family_slug:family-hash-text_pattern_ops function:hashtextextended(text,int8) left_type:text method:hash number:2 result_type:int8 right_type:text]

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f