DROP OPERATOR

Synopsis

Use the DROP OPERATOR statement to remove an operator.

Syntax

  1. drop_operator ::= DROP OPERATOR [ IF EXISTS ]
  2. { operator_name ( operator_signature ) } [ , ... ]
  3. [ CASCADE | RESTRICT ]
  4. operator_signature ::= { left_type | NONE } , { right_type | NONE }

drop_operator

DROP OPERATOR - 图1

operator_signature

DROP OPERATOR - 图2

Semantics

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

Examples

Basic example.

  1. yugabyte=# CREATE OPERATOR @#@ (
  2. rightarg = int8,
  3. procedure = numeric_fac
  4. );
  5. yugabyte=# DROP OPERATOR @#@ (NONE, int8);

See also