Wiki / Operator Families / BRIN classes
brin/interval_bloom_ops (class)
BRIN operator class for interval; member of interval_bloom_ops.
Reading PostgreSQL 18.6.
Description
BRIN operator class for interval; member of interval_bloom_ops.
- Object kind
- Operator class
- Index AM
- BRIN
- Input type
- interval
- Stored key type
- interval
- Default class
- no
Usage
brin/interval_bloom_opsOperator classes and families
An index definition can specify an operator class for each column of an index.
The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).
There are also some built-in operator classes besides the default ones:
Family operator strategies
| Operator overload | Strategy | Purpose | Ordering family | Membership scope | Source description |
|---|---|---|---|---|---|
| =(interval,interval) | 1 | search | Class input pair | equal |
Family support functions
| Support number | Left type | Right type | Function signature | Result type |
|---|---|---|---|---|
| 1 | interval | interval | brin_bloom_opcinfo(internal) | internal |
| 2 | interval | interval | brin_bloom_add_value(internal,internal,internal,internal) | bool |
| 3 | interval | interval | brin_bloom_consistent(internal,internal,internal,int4) | bool |
| 4 | interval | interval | brin_bloom_union(internal,internal,internal) | bool |
| 5 | interval | interval | brin_bloom_options(internal) | void |
| 11 | interval | interval | interval_hash(interval) | int4 |
Classes in this family
| Class | Input type | Key type | Default |
|---|---|---|---|
| interval_bloom_ops | interval | interval | no |
Related entries
Documentation and source
- Matching PostgreSQL source archive
- PostgreSQL 18 English manual: indexes-opclass.html
- PostgreSQL 18 English manual: catalog-pg-opclass.html
- PostgreSQL 18 English manual: catalog-pg-amop.html
- PostgreSQL 18 English manual: catalog-pg-amproc.html
Source build
- Version
- 18.6
- Build
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- Source fingerprint
555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
Compare versions
PostgreSQL 13 → 14: added.
--- PostgreSQL 13
+++ PostgreSQL 14
@@ -1 +1,89 @@
-Not recorded in this version
+{
+ "attributes": {
+ "default": "f",
+ "family": "interval_bloom_ops",
+ "input_type": "interval",
+ "key_type": "interval",
+ "method": "brin",
+ "name": "interval_bloom_ops"
+ },
+ "classes": [
+ {
+ "default": "f",
+ "family": "interval_bloom_ops",
+ "input_type": "interval",
+ "key_type": "interval",
+ "method": "brin",
+ "name": "interval_bloom_ops"
+ }
+ ],
+ "kind": "class",
+ "operators": [
+ {
+ "family": "interval_bloom_ops",
+ "left_type": "interval",
+ "method": "brin",
+ "operator": "=(interval,interval)",
+ "purpose": "search",
+ "right_type": "interval",
+ "sort_family": "",
+ "strategy": "1"
+ }
+ ],
+ "support_functions": [
+ {
+ "family": "interval_bloom_ops",
+ "function": "brin_bloom_opcinfo(internal)",
+ "left_type": "interval",
+ "method": "brin",
+ "number": "1",
+ "result_type": "internal",
+ "right_type": "interval"
+ },
+ {
+ "family": "interval_bloom_ops",
+ "function": "interval_hash(interval)",
+ "left_type": "interval",
+ "method": "brin",
+ "number": "11",
+ "result_type": "int4",
+ "right_type": "interval"
+ },
+ {
+ "family": "interval_bloom_ops",
+ "function": "brin_bloom_add_value(internal,internal,internal,internal)",
+ "left_type": "interval",
+ "method": "brin",
+ "number": "2",
+ "result_type": "bool",
+ "right_type": "interval"
+ },
+ {
+ "family": "interval_bloom_ops",
+ "function": "brin_bloom_consistent(internal,internal,internal,int4)",
+ "left_type": "interval",
+ "method": "brin",
+ "number": "3",
+ "result_type": "bool",
+ "right_type": "interval"
+ },
+ {
+ "family": "interval_bloom_ops",
+ "function": "brin_bloom_union(internal,internal,internal)",
+ "left_type": "interval",
+ "method": "brin",
+ "number": "4",
+ "result_type": "bool",
+ "right_type": "interval"
+ },
+ {
+ "family": "interval_bloom_ops",
+ "function": "brin_bloom_options(internal)",
+ "left_type": "interval",
+ "method": "brin",
+ "number": "5",
+ "result_type": "void",
+ "right_type": "interval"
+ }
+ ]
+}
Compares recorded interfaces and attributes. Source fingerprints and build metadata are excluded; an absent sample is not proof of the introduction or removal release.
Related entries
brin/bit_minmax_ops (class)brin/box_inclusion_ops (class)brin/bpchar_bloom_ops (class)brin/bpchar_minmax_ops (class)brin/bytea_bloom_ops (class)brin/bytea_minmax_ops (class)brin/char_bloom_ops (class)brin/char_minmax_ops (class)brin/date_bloom_ops (class)brin/date_minmax_multi_ops (class)brin/date_minmax_ops (class)brin/float4_bloom_ops (class)
Export JSON · Back to Operator Families · Recorded in PostgreSQL 14 through 20; the first sample is not necessarily its introduction.