DROP_OPERATOR
remove an operator
- Provided by: postgresql-client-18 (Version: 18.3-1)
- Source: postgresql-18
- Report a bug
remove an operator
DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , right_type ) [, ...] [ CASCADE | RESTRICT ]
DROP OPERATOR drops an existing operator from the database system. To execute this command you must be the owner of the operator.
IF EXISTS
name
left_type
right_type
CASCADE
RESTRICT
Remove the power operator a^b for type integer:
DROP OPERATOR ^ (integer, integer);
Remove the bitwise-complement prefix operator ~b for type bit:
DROP OPERATOR ~ (none, bit);
Remove multiple operators in one command:
DROP OPERATOR ~ (none, bit), ^ (integer, integer);
There is no DROP OPERATOR statement in the SQL standard.
CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR (ALTER_OPERATOR(7))