1DROP OPERATOR(7)         PostgreSQL 11.6 Documentation        DROP OPERATOR(7)
2
3
4

NAME

6       DROP_OPERATOR - remove an operator
7

SYNOPSIS

9       DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [, ...] [ CASCADE | RESTRICT ]
10

DESCRIPTION

12       DROP OPERATOR drops an existing operator from the database system. To
13       execute this command you must be the owner of the operator.
14

PARAMETERS

16       IF EXISTS
17           Do not throw an error if the operator does not exist. A notice is
18           issued in this case.
19
20       name
21           The name (optionally schema-qualified) of an existing operator.
22
23       left_type
24           The data type of the operator's left operand; write NONE if the
25           operator has no left operand.
26
27       right_type
28           The data type of the operator's right operand; write NONE if the
29           operator has no right operand.
30
31       CASCADE
32           Automatically drop objects that depend on the operator (such as
33           views using it), and in turn all objects that depend on those
34           objects (see Section 5.13).
35
36       RESTRICT
37           Refuse to drop the operator if any objects depend on it. This is
38           the default.
39

EXAMPLES

41       Remove the power operator a^b for type integer:
42
43           DROP OPERATOR ^ (integer, integer);
44
45       Remove the left unary bitwise complement operator ~b for type bit:
46
47           DROP OPERATOR ~ (none, bit);
48
49       Remove the right unary factorial operator x!  for type bigint:
50
51           DROP OPERATOR ! (bigint, none);
52
53       Remove multiple operators in one command:
54
55           DROP OPERATOR ~ (none, bit), ! (bigint, none);
56

COMPATIBILITY

58       There is no DROP OPERATOR statement in the SQL standard.
59

SEE ALSO

61       CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR
62       (ALTER_OPERATOR(7))
63
64
65
66PostgreSQL 11.6                      2019                     DROP OPERATOR(7)
Impressum