CREATE OPERATOR CLASS
Synopsis
Use the CREATE OPERATOR CLASS
statement to create a new operator class.
Syntax
create_operator_class ::= CREATE OPERATOR CLASS operator_class_name
[ DEFAULT ] FOR TYPE data_type USING
index_method AS operator_class_as [ , ... ]
operator_class_as ::= OPERATOR strategy_number operator_name
[ ( operator_signature ) ] [ FOR SEARCH ]
| FUNCTION support_number
[ ( op_type [ , ... ] ) ] function_name (
function_signature )
| STORAGE storage_type
create_operator_class
operator_class_as
Semantics
See the semantics of each option in the [PostgreSQL docs][postgresql-docs-create-op-class]. See thesemantics of strategy_number
and support_number
in another page of the [PostgreSQLdocs][postgresql-docs-xindex].
Examples
Basic example.
yugabyte=# CREATE OPERATOR CLASS my_op_class
FOR TYPE int4
USING btree AS
OPERATOR 1 <,
OPERATOR 2 <=;
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .