↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Operator Families

btree/char_ops (class)

B-tree operator class for char; member of char_ops.

Reading PG 18·Select a recorded version

Object kind
Operator class
Index AM
B-tree
Input type
char
Stored key type
Same as input type (catalog zero)
Default class
yes
aliases
char_ops, btree/char_ops
classes
map[default:t family:char_ops family_slug:family-btree-char_ops input_type:char key_type:none method:btree name:char_ops slug:class-btree-char_ops source_oid:]
signature
btree/char_ops
source oid
Unknown

Definition PG 18

B-tree operator class for char; member of char_ops.

Family operator strategies

Operator overloadStrategyPurposeOrdering familyMembership scopeSource description
<(char,char)1searchClass input pairless than
<=(char,char)2searchClass input pairless than or equal
=(char,char)3searchClass input pairequal
>=(char,char)4searchClass input pairgreater than or equal
>(char,char)5searchClass input pairgreater than

Family support functions

Support numberLeft typeRight typeFunction signatureResult type
1charcharbtcharcmp(char,char)int4
4charcharbtequalimage(oid)bool
6charcharbtcharskipsupport(internal)void

Classes in this family

ClassInput typeKey typeDefault
char_opscharSame as input typeyes

Compare versions

Complete source facts

class

{"default":"t","family":"char_ops","input_type":"char","key_type":"none","method":"btree","name":"char_ops"}

operators

map[description:less than family:char_ops family_slug:family-btree-char_ops left_type:char method:btree operator:<(char,char) operator_slug:op-3c-char-char purpose:search result_type:bool right_type:char sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:char_ops family_slug:family-btree-char_ops left_type:char method:btree operator:<=(char,char) operator_slug:op-3c3d-char-char purpose:search result_type:bool right_type:char sort_family: sort_family_slug: strategy:2], map[description:equal family:char_ops family_slug:family-btree-char_ops left_type:char method:btree operator:=(char,char) operator_slug:op-3d-char-char purpose:search result_type:bool right_type:char sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:char_ops family_slug:family-btree-char_ops left_type:char method:btree operator:>=(char,char) operator_slug:op-3e3d-char-char purpose:search result_type:bool right_type:char sort_family: sort_family_slug: strategy:4], map[description:greater than family:char_ops family_slug:family-btree-char_ops left_type:char method:btree operator:>(char,char) operator_slug:op-3e-char-char purpose:search result_type:bool right_type:char sort_family: sort_family_slug: strategy:5]

support functions

map[family:char_ops family_slug:family-btree-char_ops function:btcharcmp(char,char) left_type:char method:btree number:1 result_type:int4 right_type:char], map[family:char_ops family_slug:family-btree-char_ops function:btequalimage(oid) left_type:char method:btree number:4 result_type:bool right_type:char], map[family:char_ops family_slug:family-btree-char_ops function:btcharskipsupport(internal) left_type:char method:btree number:6 result_type:void right_type:char]

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f