↑↓ select ↵ open ⌫ change scope Open full search

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

Wiki / Operator Families / BRIN families

brin/float_minmax_multi_ops (family)

BRIN operator family containing 2 classes, 20 operator strategies and 12 support functions in this source build.

Reading PostgreSQL 18.6.

Description

BRIN operator family containing 2 classes, 20 operator strategies and 12 support functions in this source build.

Object kind
Operator family
Index AM
BRIN

Usage

brin/float_minmax_multi_ops

Operator 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 overloadStrategyPurposeOrdering familyMembership scopeSource description
<(float4,float4)1searchFamily memberless than
<=(float4,float4)2searchFamily memberless than or equal
=(float4,float4)3searchFamily memberequal
>=(float4,float4)4searchFamily membergreater than or equal
>(float4,float4)5searchFamily membergreater than
<(float4,float8)1searchFamily memberless than
<=(float4,float8)2searchFamily memberless than or equal
=(float4,float8)3searchFamily memberequal
>=(float4,float8)4searchFamily membergreater than or equal
>(float4,float8)5searchFamily membergreater than
<(float8,float4)1searchFamily memberless than
<=(float8,float4)2searchFamily memberless than or equal
=(float8,float4)3searchFamily memberequal
>=(float8,float4)4searchFamily membergreater than or equal
>(float8,float4)5searchFamily membergreater than
<(float8,float8)1searchFamily memberless than
<=(float8,float8)2searchFamily memberless than or equal
=(float8,float8)3searchFamily memberequal
>=(float8,float8)4searchFamily membergreater than or equal
>(float8,float8)5searchFamily membergreater than

Family support functions

Support numberLeft typeRight typeFunction signatureResult type
1float4float4brin_minmax_multi_opcinfo(internal)internal
2float4float4brin_minmax_multi_add_value(internal,internal,internal,internal)bool
3float4float4brin_minmax_multi_consistent(internal,internal,internal,int4)bool
4float4float4brin_minmax_multi_union(internal,internal,internal)bool
5float4float4brin_minmax_multi_options(internal)void
11float4float4brin_minmax_multi_distance_float4(internal,internal)float8
1float8float8brin_minmax_multi_opcinfo(internal)internal
2float8float8brin_minmax_multi_add_value(internal,internal,internal,internal)bool
3float8float8brin_minmax_multi_consistent(internal,internal,internal,int4)bool
4float8float8brin_minmax_multi_union(internal,internal,internal)bool
5float8float8brin_minmax_multi_options(internal)void
11float8float8brin_minmax_multi_distance_float8(internal,internal)float8

Classes in this family

Related entries

Documentation and source

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,337 @@
-Not recorded in this version
+{
+  "attributes": {
+    "method": "brin",
+    "name": "float_minmax_multi_ops"
+  },
+  "classes": [
+    {
+      "default": "f",
+      "family": "float_minmax_multi_ops",
+      "input_type": "float4",
+      "key_type": "float4",
+      "method": "brin",
+      "name": "float4_minmax_multi_ops"
+    },
+    {
+      "default": "f",
+      "family": "float_minmax_multi_ops",
+      "input_type": "float8",
+      "key_type": "float8",
+      "method": "brin",
+      "name": "float8_minmax_multi_ops"
+    }
+  ],
+  "kind": "family",
+  "operators": [
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": "<(float4,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "1"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": "<=(float4,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "2"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": "=(float4,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "3"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": ">=(float4,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": ">(float4,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "5"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": "<(float4,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "1"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": "<=(float4,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "2"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": "=(float4,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "3"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": ">=(float4,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float4",
+      "method": "brin",
+      "operator": ">(float4,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "5"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": "<(float8,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "1"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": "<=(float8,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "2"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": "=(float8,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "3"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": ">=(float8,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": ">(float8,float4)",
+      "purpose": "search",
+      "right_type": "float4",
+      "sort_family": "",
+      "strategy": "5"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": "<(float8,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "1"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": "<=(float8,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "2"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": "=(float8,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "3"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": ">=(float8,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "left_type": "float8",
+      "method": "brin",
+      "operator": ">(float8,float8)",
+      "purpose": "search",
+      "right_type": "float8",
+      "sort_family": "",
+      "strategy": "5"
+    }
+  ],
+  "support_functions": [
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_opcinfo(internal)",
+      "left_type": "float4",
+      "method": "brin",
+      "number": "1",
+      "result_type": "internal",
+      "right_type": "float4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_opcinfo(internal)",
+      "left_type": "float8",
+      "method": "brin",
+      "number": "1",
+      "result_type": "internal",
+      "right_type": "float8"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_distance_float4(internal,internal)",
+      "left_type": "float4",
+      "method": "brin",
+      "number": "11",
+      "result_type": "float8",
+      "right_type": "float4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_distance_float8(internal,internal)",
+      "left_type": "float8",
+      "method": "brin",
+      "number": "11",
+      "result_type": "float8",
+      "right_type": "float8"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_add_value(internal,internal,internal,internal)",
+      "left_type": "float4",
+      "method": "brin",
+      "number": "2",
+      "result_type": "bool",
+      "right_type": "float4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_add_value(internal,internal,internal,internal)",
+      "left_type": "float8",
+      "method": "brin",
+      "number": "2",
+      "result_type": "bool",
+      "right_type": "float8"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_consistent(internal,internal,internal,int4)",
+      "left_type": "float4",
+      "method": "brin",
+      "number": "3",
+      "result_type": "bool",
+      "right_type": "float4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_consistent(internal,internal,internal,int4)",
+      "left_type": "float8",
+      "method": "brin",
+      "number": "3",
+      "result_type": "bool",
+      "right_type": "float8"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_union(internal,internal,internal)",
+      "left_type": "float4",
+      "method": "brin",
+      "number": "4",
+      "result_type": "bool",
+      "right_type": "float4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_union(internal,internal,internal)",
+      "left_type": "float8",
+      "method": "brin",
+      "number": "4",
+      "result_type": "bool",
+      "right_type": "float8"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_options(internal)",
+      "left_type": "float4",
+      "method": "brin",
+      "number": "5",
+      "result_type": "void",
+      "right_type": "float4"
+    },
+    {
+      "family": "float_minmax_multi_ops",
+      "function": "brin_minmax_multi_options(internal)",
+      "left_type": "float8",
+      "method": "brin",
+      "number": "5",
+      "result_type": "void",
+      "right_type": "float8"
+    }
+  ]
+}

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

Export JSON · Back to Operator Families · Recorded in PostgreSQL 14 through 20; the first sample is not necessarily its introduction.