postgresql_16:7.1.71 CREATE OPERATOR CLASS
PostgreSQL 16 > Reference > SQL Commands > CREATE OPERATOR CLASS
define a new operator class
CREATE OPERATOR CLASS name [ DEFAULT ] FOR TYPE data_type
USING index_method [ FAMILY family_name ] AS
{ OPERATOR strategy_number operator_name [ ( op_type, op_type ) ] [ FOR SEARCH | FOR ORDER BY sort_family_name ]
| FUNCTION support_number [ ( op_type [ , op_type ] ) ] function_name ( argument_type [, ...] )
| STORAGE storage_type
} [, ... ]
CREATE OPERATOR CLASS name [ DEFAULT ] FOR TYPE data_type
USING index_method [ FAMILY family_name ] AS
{ OPERATOR strategy_number operator_name [ ( op_type, op_type ) ] [ FOR SEARCH | FOR ORDER BY sort_family_name ]
| FUNCTION support_number [ ( op_type [ , op_type ] ) ] function_name ( argument_type [, ...] )
| STORAGE storage_type
} [, ... ]
Subsections
- postgresql_16:7.1.71.1 Description
- postgresql_16:7.1.71.2 Parameters
- postgresql_16:7.1.71.3 Notes
- postgresql_16:7.1.71.4 Examples
- postgresql_16:7.1.71.5 Compatibility
- postgresql_16:7.1.71.6 See Also