↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 操作符族

btree/numeric_ops (class)

B-tree operator class for numeric; member of numeric_ops.

当前阅读 PG 18·选择有来源记录的版本

此版本暂无所选语言的定义,以下显示原始英文内容。

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

版本定义 PG 18

B-tree operator class for numeric; member of numeric_ops.

Family operator strategies

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

Family support functions

Support numberLeft typeRight typeFunction signatureResult type
1numericnumericnumeric_cmp(numeric,numeric)int4
2numericnumericnumeric_sortsupport(internal)void
3numericnumericin_range(numeric,numeric,numeric,bool,bool)bool

Classes in this family

ClassInput typeKey typeDefault
numeric_opsnumericSame as input typeyes

比较版本

完整来源事实

class

{"default":"t","family":"numeric_ops","input_type":"numeric","key_type":"none","method":"btree","name":"numeric_ops"}

operators

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

support functions

map[family:numeric_ops family_slug:family-btree-numeric_ops function:numeric_cmp(numeric,numeric) left_type:numeric method:btree number:1 result_type:int4 right_type:numeric], map[family:numeric_ops family_slug:family-btree-numeric_ops function:numeric_sortsupport(internal) left_type:numeric method:btree number:2 result_type:void right_type:numeric], map[family:numeric_ops family_slug:family-btree-numeric_ops function:in_range(numeric,numeric,numeric,bool,bool) left_type:numeric method:btree number:3 result_type:bool right_type:numeric]

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

正文语言: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f