Commit a68dfa27 authored by Tomas Vondra's avatar Tomas Vondra

Remove unnecessary pg_amproc BRIN minmax entries

The BRIN minmax opclasses included amproc entries with mismatching left
and right types, but those happen to be unnecessary.  The opclasses only
need cross-type operators, not cross-type support procedures. Discovered
when trying to define equivalent BRIN operator families in an extension.

Catversion bump, because of pg_amproc changes.

Author: Tomas Vondra
Reviewed-by: Alvaro Herrera
Discussion: https://postgr.es/m/78c357ab-3395-8433-e7b3-b2cfcc9fdc23%40enterprisedb.com
parent 5db1fd78
...@@ -53,6 +53,6 @@ ...@@ -53,6 +53,6 @@
*/ */
/* yyyymmddN */ /* yyyymmddN */
#define CATALOG_VERSION_NO 202103251 #define CATALOG_VERSION_NO 202103261
#endif #endif
...@@ -843,28 +843,7 @@ ...@@ -843,28 +843,7 @@
amproc => 'brin_minmax_consistent' }, amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8', { amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int8', amprocnum => '4', amproc => 'brin_minmax_union' }, amprocrighttype => 'int8', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int2', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int2', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int2', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int2', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int4', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int4', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int4', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int8',
amprocrighttype => 'int4', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2', { amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int2', amprocnum => '1', amprocrighttype => 'int2', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' }, amproc => 'brin_minmax_opcinfo' },
...@@ -876,28 +855,7 @@ ...@@ -876,28 +855,7 @@
amproc => 'brin_minmax_consistent' }, amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2', { amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int2', amprocnum => '4', amproc => 'brin_minmax_union' }, amprocrighttype => 'int2', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int8', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int8', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int8', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int8', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int4', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int4', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int4', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int2',
amprocrighttype => 'int4', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4', { amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int4', amprocnum => '1', amprocrighttype => 'int4', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' }, amproc => 'brin_minmax_opcinfo' },
...@@ -909,28 +867,6 @@ ...@@ -909,28 +867,6 @@
amproc => 'brin_minmax_consistent' }, amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4', { amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int4', amprocnum => '4', amproc => 'brin_minmax_union' }, amprocrighttype => 'int4', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int8', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int8', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int8', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int8', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int2', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int2', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int2', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/integer_minmax_ops', amproclefttype => 'int4',
amprocrighttype => 'int2', amprocnum => '4', amproc => 'brin_minmax_union' },
# minmax text # minmax text
{ amprocfamily => 'brin/text_minmax_ops', amproclefttype => 'text', { amprocfamily => 'brin/text_minmax_ops', amproclefttype => 'text',
...@@ -982,18 +918,7 @@ ...@@ -982,18 +918,7 @@
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float4', { amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float4',
amprocrighttype => 'float4', amprocnum => '4', amprocrighttype => 'float4', amprocnum => '4',
amproc => 'brin_minmax_union' }, amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float4',
amprocrighttype => 'float8', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float4',
amprocrighttype => 'float8', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float4',
amprocrighttype => 'float8', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float4',
amprocrighttype => 'float8', amprocnum => '4',
amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8', { amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8',
amprocrighttype => 'float8', amprocnum => '1', amprocrighttype => 'float8', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' }, amproc => 'brin_minmax_opcinfo' },
...@@ -1006,18 +931,6 @@ ...@@ -1006,18 +931,6 @@
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8', { amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8',
amprocrighttype => 'float8', amprocnum => '4', amprocrighttype => 'float8', amprocnum => '4',
amproc => 'brin_minmax_union' }, amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8',
amprocrighttype => 'float4', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8',
amprocrighttype => 'float4', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8',
amprocrighttype => 'float4', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/float_minmax_ops', amproclefttype => 'float8',
amprocrighttype => 'float4', amprocnum => '4',
amproc => 'brin_minmax_union' },
# minmax macaddr # minmax macaddr
{ amprocfamily => 'brin/macaddr_minmax_ops', amproclefttype => 'macaddr', { amprocfamily => 'brin/macaddr_minmax_ops', amproclefttype => 'macaddr',
...@@ -1120,29 +1033,7 @@ ...@@ -1120,29 +1033,7 @@
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp', { amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'timestamp', amprocnum => '4', amprocrighttype => 'timestamp', amprocnum => '4',
amproc => 'brin_minmax_union' }, amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'timestamptz', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'timestamptz', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'timestamptz', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'timestamptz', amprocnum => '4',
amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'date', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'date', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'date', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamp',
amprocrighttype => 'date', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz', { amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'timestamptz', amprocnum => '1', amprocrighttype => 'timestamptz', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' }, amproc => 'brin_minmax_opcinfo' },
...@@ -1155,29 +1046,7 @@ ...@@ -1155,29 +1046,7 @@
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz', { amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'timestamptz', amprocnum => '4', amprocrighttype => 'timestamptz', amprocnum => '4',
amproc => 'brin_minmax_union' }, amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'timestamp', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'timestamp', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'timestamp', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'timestamp', amprocnum => '4',
amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'date', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'date', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'date', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'timestamptz',
amprocrighttype => 'date', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date', { amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'date', amprocnum => '1', amprocrighttype => 'date', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' }, amproc => 'brin_minmax_opcinfo' },
...@@ -1189,30 +1058,6 @@ ...@@ -1189,30 +1058,6 @@
amproc => 'brin_minmax_consistent' }, amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date', { amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'date', amprocnum => '4', amproc => 'brin_minmax_union' }, amprocrighttype => 'date', amprocnum => '4', amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamp', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamp', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamp', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamp', amprocnum => '4',
amproc => 'brin_minmax_union' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamptz', amprocnum => '1',
amproc => 'brin_minmax_opcinfo' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamptz', amprocnum => '2',
amproc => 'brin_minmax_add_value' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamptz', amprocnum => '3',
amproc => 'brin_minmax_consistent' },
{ amprocfamily => 'brin/datetime_minmax_ops', amproclefttype => 'date',
amprocrighttype => 'timestamptz', amprocnum => '4',
amproc => 'brin_minmax_union' },
# minmax interval # minmax interval
{ amprocfamily => 'brin/interval_minmax_ops', amproclefttype => 'interval', { amprocfamily => 'brin/interval_minmax_ops', amproclefttype => 'interval',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment