2 .\" Title: DROP OPERATOR
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "DROP OPERATOR" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 DROP_OPERATOR \- remove an operator
35 DROP OPERATOR [ IF EXISTS ] \fIname\fR ( { \fIleft_type\fR | NONE } , \fIright_type\fR ) [, \&.\&.\&.] [ CASCADE | RESTRICT ]
40 drops an existing operator from the database system\&. To execute this command you must be the owner of the operator\&.
45 Do not throw an error if the operator does not exist\&. A notice is issued in this case\&.
50 The name (optionally schema\-qualified) of an existing operator\&.
55 The data type of the operator\*(Aqs left operand; write
57 if the operator has no left operand\&.
62 The data type of the operator\*(Aqs right operand\&.
67 Automatically drop objects that depend on the operator (such as views using it), and in turn all objects that depend on those objects (see
73 Refuse to drop the operator if any objects depend on it\&. This is the default\&.
77 Remove the power operator
86 DROP OPERATOR ^ (integer, integer);
92 Remove the bitwise\-complement prefix operator
101 DROP OPERATOR ~ (none, bit);
107 Remove multiple operators in one command:
113 DROP OPERATOR ~ (none, bit), ^ (integer, integer);
122 statement in the SQL standard\&.
124 CREATE OPERATOR (\fBCREATE_OPERATOR\fR(7)), ALTER OPERATOR (\fBALTER_OPERATOR\fR(7))