DROP OPERATOR CLASS

Synopsis

Use the DROP OPERATOR CLASS statement to remove an operator class.

Syntax

  1. drop_operator_class ::= DROP OPERATOR CLASS [ IF EXISTS ]
  2. operator_class_name USING index_method
  3. [ CASCADE | RESTRICT ]

drop_operator_class

DROP OPERATOR CLASS - 图1

Semantics

See the semantics of each option in the [PostgreSQL docs][postgresql-docs-drop-operator-class].

Examples

Basic example.

  1. yugabyte=# CREATE OPERATOR CLASS my_op_class
  2. FOR TYPE int4
  3. USING btree AS
  4. OPERATOR 1 <,
  5. OPERATOR 2 <=;
  6. yugabyte=# DROP OPERATOR CLASS my_op_class USING btree;

See also