2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_operator.sgml,v 1.16 2002/05/18 15:44:47 petere Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-DROPOPERATOR">
8 <refentrytitle id="SQL-DROPOPERATOR-TITLE">DROP OPERATOR</refentrytitle>
9 <refmiscinfo>SQL - Language Statements</refmiscinfo>
16 remove a user-defined operator
22 <date>1999-07-20</date>
25 DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable class="PARAMETER">lefttype</replaceable> | NONE , <replaceable class="PARAMETER">righttype</replaceable> | NONE )
28 <refsect2 id="R2-SQL-DROPOPERATOR-1">
30 <date>1998-09-22</date>
38 <term><replaceable class="parameter">id</replaceable></term>
41 The identifier (optionally schema-qualified) of an existing operator.
46 <term><replaceable class="parameter">lefttype</replaceable></term>
49 The type of the operator's left argument; write <literal>NONE</literal> if the
50 operator has no left argument.
55 <term><replaceable class="parameter">righttype</replaceable></term>
58 The type of the operator's right argument; write <literal>NONE</literal> if the
59 operator has no right argument.
67 <refsect2 id="R2-SQL-DROPOPERATOR-2">
69 <date>1998-09-22</date>
78 <term><computeroutput>
80 </computeroutput></term>
83 The message returned if the command is successful.
88 <term><computeroutput>
89 ERROR: RemoveOperator: binary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' and '<replaceable class="PARAMETER">righttype</replaceable>' does not exist
90 </computeroutput></term>
93 This message occurs if the specified binary operator does not exist.
98 <term><computeroutput>
99 ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' does not exist
100 </computeroutput></term>
103 This message occurs if the left unary operator
104 specified does not exist.
109 <term><computeroutput>
110 ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">righttype</replaceable>' does not exist
111 </computeroutput></term>
114 This message occurs if the right unary operator
115 specified does not exist.
124 <refsect1 id="R1-SQL-DROPOPERATOR-1">
126 <date>1998-09-22</date>
132 <command>DROP OPERATOR</command> drops an existing operator from the
134 To execute this command you must be the owner of the operator.
137 The left or right type of a left or right unary
138 operator, respectively, must be specified as <literal>NONE</literal>.
141 <refsect2 id="R2-SQL-DROPOPERATOR-3">
143 <date>1998-09-22</date>
149 The <command>DROP OPERATOR</command> statement is a
150 <productname>PostgreSQL</productname>
155 <xref linkend="sql-createoperator" endterm="sql-createoperator-title">
156 for information on how to create operators.
159 It is the user's responsibility to remove any access method
160 operator classes that rely on the deleted operator.
165 <refsect1 id="R1-SQL-DROPOPERATOR-2">
170 Remove power operator <literal>a^n</literal> for <literal>int4</literal>:
173 DROP OPERATOR ^ (int4, int4);
177 Remove left unary negation operator (<literal>! b</literal>) for <type>boolean</type>:
179 DROP OPERATOR ! (none, bool);
183 Remove right unary factorial operator (<literal>i !</literal>) for
184 <literal>int4</literal>:
186 DROP OPERATOR ! (int4, none);
191 <refsect1 id="R1-SQL-DROPOPERATOR-3">
196 <refsect2 id="R2-SQL-DROPOPERATOR-4">
198 <date>1998-09-22</date>
204 There is no <command>DROP OPERATOR</command> in <acronym>SQL92</acronym>.
210 <!-- Keep this comment at the end of the file
215 sgml-minimize-attributes:nil
216 sgml-always-quote-attributes:t
219 sgml-parent-document:nil
220 sgml-default-dtd-file:"../reference.ced"
221 sgml-exposed-tags:nil
222 sgml-local-catalogs:"/usr/lib/sgml/catalog"
223 sgml-local-ecat-files:nil