1DROP OPERATOR(7) PostgreSQL 9.2.24 Documentation DROP OPERATOR(7)
2
3
4
6 DROP_OPERATOR - remove an operator
7
9 DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [ CASCADE | RESTRICT ]
10
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
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.
33
34 RESTRICT
35 Refuse to drop the operator if any objects depend on it. This is
36 the default.
37
39 Remove the power operator a^b for type integer:
40
41 DROP OPERATOR ^ (integer, integer);
42
43 Remove the left unary bitwise complement operator ~b for type bit:
44
45 DROP OPERATOR ~ (none, bit);
46
47 Remove the right unary factorial operator x! for type bigint:
48
49 DROP OPERATOR ! (bigint, none);
50
52 There is no DROP OPERATOR statement in the SQL standard.
53
55 CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR
56 (ALTER_OPERATOR(7))
57
58
59
60PostgreSQL 9.2.24 2017-11-06 DROP OPERATOR(7)