DROP OPERATOR CLASS
This page documents a preview version.
v2.23 Preview
Preview includes features under active development and is for development and testing only.
For production, use the latest stable version (v2024.1).
For production, use the latest stable version (v2024.1).
Synopsis
Use the DROP OPERATOR CLASS
statement to remove an operator class.
Syntax
drop_operator_class ::= DROP OPERATOR CLASS [ IF EXISTS ]
operator_class_name USING index_method
[ CASCADE | RESTRICT ]
Semantics
See the semantics of each option in the [PostgreSQL docs][postgresql-docs-drop-operator-class].
Examples
Basic example.
yugabyte=# CREATE OPERATOR CLASS my_op_class
FOR TYPE int4
USING btree AS
OPERATOR 1 <,
OPERATOR 2 <=;
yugabyte=# DROP OPERATOR CLASS my_op_class USING btree;