DROP_OPERATOR
remove an operator
- Provided by: postgresql-client-10 (Version: 10.23-0ubuntu0.18.04.2)
- Source: postgresql-10
- Report a bug
remove an operator
DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [, ...] [ 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 left unary bitwise complement operator ~b for type bit:
DROP OPERATOR ~ (none, bit);
Remove the right unary factorial operator x! for type bigint:
DROP OPERATOR ! (bigint, none);
Remove multiple operators in one command:
DROP OPERATOR ~ (none, bit), ! (bigint, none);
There is no DROP OPERATOR statement in the SQL standard.
CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR (ALTER_OPERATOR(7))