1 <REFENTRY ID="SQL-DROPOPERATOR">
6 <REFMISCINFO>SQL - Language Statements</REFMISCINFO>
13 Removes an operator from the database
19 <DATE>1998-09-22</DATE>
22 DROP OPERATOR <REPLACEABLE CLASS="PARAMETER">id</REPLACEABLE> ( <REPLACEABLE CLASS="PARAMETER">type</REPLACEABLE> | NONE [,...] )
25 <REFSECT2 ID="R2-SQL-DROPOPERATOR-1">
27 <DATE>1998-09-22</DATE>
37 <replaceable class="parameter">id</replaceable>
41 The identifier of an existing operator.
47 <replaceable class="parameter">type</replaceable>
51 The type of function parameters.
58 <REFSECT2 ID="R2-SQL-DROPOPERATOR-2">
60 <DATE>1998-09-22</DATE>
70 <ReturnValue>DROP</ReturnValue>
74 The message returned if the command is successful.
80 <ReturnValue>ERROR: RemoveOperator: binary operator '<REPLACEABLE CLASS="PARAMETER">id</REPLACEABLE>' taking '<REPLACEABLE CLASS="PARAMETER">type1</REPLACEABLE>' and '<REPLACEABLE CLASS="PARAMETER">type2</REPLACEABLE>' does not exist</ReturnValue>
84 This message occurs if the specified binary operator does not exist.
90 <ReturnValue>ERROR: RemoveOperator: left unary operator '<REPLACEABLE CLASS="PARAMETER">id</REPLACEABLE>' taking '<REPLACEABLE CLASS="PARAMETER">type</REPLACEABLE>' does not exist</ReturnValue>
94 This message occurs if the specified left unary operator
95 specified does not exist.
101 <ReturnValue>ERROR: RemoveOperator: right unary operator '<REPLACEABLE CLASS="PARAMETER">id</REPLACEABLE>' taking '<REPLACEABLE CLASS="PARAMETER">type</REPLACEABLE>' does not exist</ReturnValue>
105 This message occurs if the specified right unary operator
106 specified does not exist.
115 <REFSECT1 ID="R1-SQL-DROPOPERATOR-1">
117 <DATE>1998-09-22</DATE>
123 The DROP OPERATOR statement drops an existing operator from the
125 To execute this command you must be the owner of the operator.
128 The left or right type of a left or right unary
129 operator, respectively, may be specified as NONE.
132 <REFSECT2 ID="R2-SQL-DROPOPERATOR-3">
134 <DATE>1998-09-22</DATE>
140 The <command>DROP OPERATOR</command> statement is a
141 <productname>Postgres</productname>
145 Refer to <command>CREATE OPERATOR</command> for
146 information on how to create operators.
149 It is the user's responsibility to remove any access methods and
150 operator classes that rely on the deleted operator.
155 <REFSECT1 ID="R1-SQL-DROPOPERATOR-2">
160 Remove power operator <literal>a^n</literal> for <literal>int4</literal>:
163 DROP OPERATOR ^ (int4, int4);
166 Remove left unary operator <literal>!a</literal> for booleans:
169 DROP OPERATOR ! (none, bool);
172 Remove right unary factorial operator <literal>a!</literal> for
173 <literal>int4</literal>:
176 DROP OPERATOR ! (int4, none);
180 <REFSECT1 ID="R1-SQL-DROPOPERATOR-3">
187 <REFSECT2 ID="R2-SQL-DROPOPERATOR-4">
189 <DATE>1998-09-22</DATE>
195 There is no <command>DROP OPERATOR</command> in <acronym>SQL92</acronym>.
201 <!-- Keep this comment at the end of the file
206 sgml-minimize-attributes:nil
207 sgml-always-quote-attributes:t
210 sgml-parent-document:nil
211 sgml-default-dtd-file:"../reference.ced"
212 sgml-exposed-tags:nil
213 sgml-local-catalogs:"/usr/lib/sgml/catalog"
214 sgml-local-ecat-files:nil