btree/datetime_ops (family)
B-tree operator family containing 3 classes, 45 operator strategies and 21 support functions in this source build.
当前阅读 PG 18·选择有来源记录的版本
此版本暂无所选语言的定义,以下显示原始英文内容。
- Object kind
- Operator family
- Index AM
- B-tree
- aliases
- datetime_ops, btree/datetime_ops
- signature
- btree/datetime_ops
- source oid
- 434
版本定义 PG 18
B-tree operator family containing 3 classes, 45 operator strategies and 21 support functions in this source build.
Family operator strategies
| Operator overload | Strategy | Purpose | Ordering family | Membership scope | Source description |
|---|---|---|---|---|---|
| <(date,date) | 1 | search | Family member | less than | |
| <=(date,date) | 2 | search | Family member | less than or equal | |
| =(date,date) | 3 | search | Family member | equal | |
| >=(date,date) | 4 | search | Family member | greater than or equal | |
| >(date,date) | 5 | search | Family member | greater than | |
| <(date,timestamp) | 1 | search | Family member | less than | |
| <=(date,timestamp) | 2 | search | Family member | less than or equal | |
| =(date,timestamp) | 3 | search | Family member | equal | |
| >=(date,timestamp) | 4 | search | Family member | greater than or equal | |
| >(date,timestamp) | 5 | search | Family member | greater than | |
| <(date,timestamptz) | 1 | search | Family member | less than | |
| <=(date,timestamptz) | 2 | search | Family member | less than or equal | |
| =(date,timestamptz) | 3 | search | Family member | equal | |
| >=(date,timestamptz) | 4 | search | Family member | greater than or equal | |
| >(date,timestamptz) | 5 | search | Family member | greater than | |
| <(timestamp,timestamp) | 1 | search | Family member | less than | |
| <=(timestamp,timestamp) | 2 | search | Family member | less than or equal | |
| =(timestamp,timestamp) | 3 | search | Family member | equal | |
| >=(timestamp,timestamp) | 4 | search | Family member | greater than or equal | |
| >(timestamp,timestamp) | 5 | search | Family member | greater than | |
| <(timestamp,date) | 1 | search | Family member | less than | |
| <=(timestamp,date) | 2 | search | Family member | less than or equal | |
| =(timestamp,date) | 3 | search | Family member | equal | |
| >=(timestamp,date) | 4 | search | Family member | greater than or equal | |
| >(timestamp,date) | 5 | search | Family member | greater than | |
| <(timestamp,timestamptz) | 1 | search | Family member | less than | |
| <=(timestamp,timestamptz) | 2 | search | Family member | less than or equal | |
| =(timestamp,timestamptz) | 3 | search | Family member | equal | |
| >=(timestamp,timestamptz) | 4 | search | Family member | greater than or equal | |
| >(timestamp,timestamptz) | 5 | search | Family member | greater than | |
| <(timestamptz,timestamptz) | 1 | search | Family member | less than | |
| <=(timestamptz,timestamptz) | 2 | search | Family member | less than or equal | |
| =(timestamptz,timestamptz) | 3 | search | Family member | equal | |
| >=(timestamptz,timestamptz) | 4 | search | Family member | greater than or equal | |
| >(timestamptz,timestamptz) | 5 | search | Family member | greater than | |
| <(timestamptz,date) | 1 | search | Family member | less than | |
| <=(timestamptz,date) | 2 | search | Family member | less than or equal | |
| =(timestamptz,date) | 3 | search | Family member | equal | |
| >=(timestamptz,date) | 4 | search | Family member | greater than or equal | |
| >(timestamptz,date) | 5 | search | Family member | greater than | |
| <(timestamptz,timestamp) | 1 | search | Family member | less than | |
| <=(timestamptz,timestamp) | 2 | search | Family member | less than or equal | |
| =(timestamptz,timestamp) | 3 | search | Family member | equal | |
| >=(timestamptz,timestamp) | 4 | search | Family member | greater than or equal | |
| >(timestamptz,timestamp) | 5 | search | Family member | greater than |
Family support functions
| Support number | Left type | Right type | Function signature | Result type |
|---|---|---|---|---|
| 1 | date | date | date_cmp(date,date) | int4 |
| 2 | date | date | date_sortsupport(internal) | void |
| 4 | date | date | btequalimage(oid) | bool |
| 6 | date | date | date_skipsupport(internal) | void |
| 1 | date | timestamp | date_cmp_timestamp(date,timestamp) | int4 |
| 1 | date | timestamptz | date_cmp_timestamptz(date,timestamptz) | int4 |
| 1 | timestamp | timestamp | timestamp_cmp(timestamp,timestamp) | int4 |
| 2 | timestamp | timestamp | timestamp_sortsupport(internal) | void |
| 4 | timestamp | timestamp | btequalimage(oid) | bool |
| 6 | timestamp | timestamp | timestamp_skipsupport(internal) | void |
| 1 | timestamp | date | timestamp_cmp_date(timestamp,date) | int4 |
| 1 | timestamp | timestamptz | timestamp_cmp_timestamptz(timestamp,timestamptz) | int4 |
| 1 | timestamptz | timestamptz | timestamptz_cmp(timestamptz,timestamptz) | int4 |
| 2 | timestamptz | timestamptz | timestamp_sortsupport(internal) | void |
| 4 | timestamptz | timestamptz | btequalimage(oid) | bool |
| 6 | timestamptz | timestamptz | timestamp_skipsupport(internal) | void |
| 1 | timestamptz | date | timestamptz_cmp_date(timestamptz,date) | int4 |
| 1 | timestamptz | timestamp | timestamptz_cmp_timestamp(timestamptz,timestamp) | int4 |
| 3 | date | interval | in_range(date,date,interval,bool,bool) | bool |
| 3 | timestamp | interval | in_range(timestamp,timestamp,interval,bool,bool) | bool |
| 3 | timestamptz | interval | in_range(timestamptz,timestamptz,interval,bool,bool) | bool |
Classes in this family
| Class | Input type | Key type | Default |
|---|---|---|---|
| date_ops | date | Same as input type | yes |
| timestamptz_ops | timestamptz | Same as input type | yes |
| timestamp_ops | timestamp | Same as input type | yes |
比较版本
完整来源事实
classes
map[default:t family:datetime_ops family_slug:family-btree-datetime_ops input_type:date key_type:none method:btree name:date_ops slug:class-btree-date_ops source_oid:3122], map[default:t family:datetime_ops family_slug:family-btree-datetime_ops input_type:timestamptz key_type:none method:btree name:timestamptz_ops slug:class-btree-timestamptz_ops source_oid:3127], map[default:t family:datetime_ops family_slug:family-btree-datetime_ops input_type:timestamp key_type:none method:btree name:timestamp_ops slug:class-btree-timestamp_ops source_oid:3128]
family
{"method":"btree","name":"datetime_ops"}operators
map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:<(date,date) operator_slug:op-3c-date-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:<=(date,date) operator_slug:op-3c3d-date-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:=(date,date) operator_slug:op-3d-date-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:>=(date,date) operator_slug:op-3e3d-date-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:>(date,date) operator_slug:op-3e-date-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:<(date,timestamp) operator_slug:op-3c-date-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:<=(date,timestamp) operator_slug:op-3c3d-date-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:=(date,timestamp) operator_slug:op-3d-date-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:>=(date,timestamp) operator_slug:op-3e3d-date-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:>(date,timestamp) operator_slug:op-3e-date-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:<(date,timestamptz) operator_slug:op-3c-date-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:<=(date,timestamptz) operator_slug:op-3c3d-date-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:=(date,timestamptz) operator_slug:op-3d-date-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:>=(date,timestamptz) operator_slug:op-3e3d-date-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:date method:btree operator:>(date,timestamptz) operator_slug:op-3e-date-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:<(timestamp,timestamp) operator_slug:op-3c-timestamp-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:<=(timestamp,timestamp) operator_slug:op-3c3d-timestamp-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:=(timestamp,timestamp) operator_slug:op-3d-timestamp-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:>=(timestamp,timestamp) operator_slug:op-3e3d-timestamp-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:>(timestamp,timestamp) operator_slug:op-3e-timestamp-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:<(timestamp,date) operator_slug:op-3c-timestamp-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:<=(timestamp,date) operator_slug:op-3c3d-timestamp-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:=(timestamp,date) operator_slug:op-3d-timestamp-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:>=(timestamp,date) operator_slug:op-3e3d-timestamp-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:>(timestamp,date) operator_slug:op-3e-timestamp-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:<(timestamp,timestamptz) operator_slug:op-3c-timestamp-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:<=(timestamp,timestamptz) operator_slug:op-3c3d-timestamp-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:=(timestamp,timestamptz) operator_slug:op-3d-timestamp-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:>=(timestamp,timestamptz) operator_slug:op-3e3d-timestamp-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamp method:btree operator:>(timestamp,timestamptz) operator_slug:op-3e-timestamp-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:<(timestamptz,timestamptz) operator_slug:op-3c-timestamptz-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:<=(timestamptz,timestamptz) operator_slug:op-3c3d-timestamptz-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:=(timestamptz,timestamptz) operator_slug:op-3d-timestamptz-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:>=(timestamptz,timestamptz) operator_slug:op-3e3d-timestamptz-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:>(timestamptz,timestamptz) operator_slug:op-3e-timestamptz-timestamptz purpose:search result_type:bool right_type:timestamptz sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:<(timestamptz,date) operator_slug:op-3c-timestamptz-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:<=(timestamptz,date) operator_slug:op-3c3d-timestamptz-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:=(timestamptz,date) operator_slug:op-3d-timestamptz-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:>=(timestamptz,date) operator_slug:op-3e3d-timestamptz-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:>(timestamptz,date) operator_slug:op-3e-timestamptz-date purpose:search result_type:bool right_type:date sort_family: sort_family_slug: strategy:5], map[description:less than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:<(timestamptz,timestamp) operator_slug:op-3c-timestamptz-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:1], map[description:less than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:<=(timestamptz,timestamp) operator_slug:op-3c3d-timestamptz-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:2], map[description:equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:=(timestamptz,timestamp) operator_slug:op-3d-timestamptz-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:3], map[description:greater than or equal family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:>=(timestamptz,timestamp) operator_slug:op-3e3d-timestamptz-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:4], map[description:greater than family:datetime_ops family_slug:family-btree-datetime_ops left_type:timestamptz method:btree operator:>(timestamptz,timestamp) operator_slug:op-3e-timestamptz-timestamp purpose:search result_type:bool right_type:timestamp sort_family: sort_family_slug: strategy:5]
support functions
map[family:datetime_ops family_slug:family-btree-datetime_ops function:date_cmp(date,date) left_type:date method:btree number:1 result_type:int4 right_type:date], map[family:datetime_ops family_slug:family-btree-datetime_ops function:date_sortsupport(internal) left_type:date method:btree number:2 result_type:void right_type:date], map[family:datetime_ops family_slug:family-btree-datetime_ops function:btequalimage(oid) left_type:date method:btree number:4 result_type:bool right_type:date], map[family:datetime_ops family_slug:family-btree-datetime_ops function:date_skipsupport(internal) left_type:date method:btree number:6 result_type:void right_type:date], map[family:datetime_ops family_slug:family-btree-datetime_ops function:date_cmp_timestamp(date,timestamp) left_type:date method:btree number:1 result_type:int4 right_type:timestamp], map[family:datetime_ops family_slug:family-btree-datetime_ops function:date_cmp_timestamptz(date,timestamptz) left_type:date method:btree number:1 result_type:int4 right_type:timestamptz], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_cmp(timestamp,timestamp) left_type:timestamp method:btree number:1 result_type:int4 right_type:timestamp], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_sortsupport(internal) left_type:timestamp method:btree number:2 result_type:void right_type:timestamp], map[family:datetime_ops family_slug:family-btree-datetime_ops function:btequalimage(oid) left_type:timestamp method:btree number:4 result_type:bool right_type:timestamp], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_skipsupport(internal) left_type:timestamp method:btree number:6 result_type:void right_type:timestamp], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_cmp_date(timestamp,date) left_type:timestamp method:btree number:1 result_type:int4 right_type:date], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_cmp_timestamptz(timestamp,timestamptz) left_type:timestamp method:btree number:1 result_type:int4 right_type:timestamptz], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamptz_cmp(timestamptz,timestamptz) left_type:timestamptz method:btree number:1 result_type:int4 right_type:timestamptz], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_sortsupport(internal) left_type:timestamptz method:btree number:2 result_type:void right_type:timestamptz], map[family:datetime_ops family_slug:family-btree-datetime_ops function:btequalimage(oid) left_type:timestamptz method:btree number:4 result_type:bool right_type:timestamptz], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamp_skipsupport(internal) left_type:timestamptz method:btree number:6 result_type:void right_type:timestamptz], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamptz_cmp_date(timestamptz,date) left_type:timestamptz method:btree number:1 result_type:int4 right_type:date], map[family:datetime_ops family_slug:family-btree-datetime_ops function:timestamptz_cmp_timestamp(timestamptz,timestamp) left_type:timestamptz method:btree number:1 result_type:int4 right_type:timestamp], map[family:datetime_ops family_slug:family-btree-datetime_ops function:in_range(date,date,interval,bool,bool) left_type:date method:btree number:3 result_type:bool right_type:interval], map[family:datetime_ops family_slug:family-btree-datetime_ops function:in_range(timestamp,timestamp,interval,bool,bool) left_type:timestamp method:btree number:3 result_type:bool right_type:interval], map[family:datetime_ops family_slug:family-btree-datetime_ops function:in_range(timestamptz,timestamptz,interval,bool,bool) left_type:timestamptz method:btree number:3 result_type:bool right_type:interval]
来源引用
- Matching PostgreSQL source archive
- PostgreSQL 18 English manual: indexes-opclass.html
- PostgreSQL 18 English manual: catalog-pg-opfamily.html
- PostgreSQL 18 English manual: catalog-pg-amop.html
- PostgreSQL 18 English manual: catalog-pg-amproc.html
- 固定 PostgreSQL 源码归档
定义来源
center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
正文语言: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f