table of contents
DROP OPERATOR(7) | PostgreSQL 13.4 Documentation | DROP OPERATOR(7) |
NAME¶
DROP_OPERATOR - remove an operator
SYNOPSIS¶
DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION¶
DROP OPERATOR drops an existing operator from the database system. To execute this command you must be the owner of the operator.
PARAMETERS¶
IF EXISTS
name
left_type
right_type
CASCADE
RESTRICT
EXAMPLES¶
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);
COMPATIBILITY¶
There is no DROP OPERATOR statement in the SQL standard.
SEE ALSO¶
CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR (ALTER_OPERATOR(7))
2021 | PostgreSQL 13.4 |