2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_operator.sgml,v 1.8 2000/10/23 00:46:07 tgl Exp $
6 <refentry id="SQL-DROPOPERATOR">
8 <refentrytitle id="SQL-DROPOPERATOR-TITLE">
11 <refmiscinfo>SQL - Language Statements</refmiscinfo>
18 Removes an operator from the database
24 <date>1999-07-20</date>
27 DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable class="PARAMETER">lefttype</replaceable> | NONE , <replaceable class="PARAMETER">righttype</replaceable> | NONE )
30 <refsect2 id="R2-SQL-DROPOPERATOR-1">
32 <date>1998-09-22</date>
40 <term><replaceable class="parameter">id</replaceable></term>
43 The identifier of an existing operator.
48 <term><replaceable class="parameter">lefttype</replaceable></term>
51 The type of the operator's left argument; write <literal>NONE</literal> if the
52 operator has no left argument.
57 <term><replaceable class="parameter">righttype</replaceable></term>
60 The type of the operator's right argument; write <literal>NONE</literal> if the
61 operator has no right argument.
69 <refsect2 id="R2-SQL-DROPOPERATOR-2">
71 <date>1998-09-22</date>
80 <term><computeroutput>
82 </computeroutput></term>
85 The message returned if the command is successful.
90 <term><computeroutput>
91 ERROR: RemoveOperator: binary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' and '<replaceable class="PARAMETER">type2</replaceable>' does not exist
92 </computeroutput></term>
95 This message occurs if the specified binary operator does not exist.
100 <term><computeroutput>
101 ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' does not exist
102 </computeroutput></term>
105 This message occurs if the left unary operator
106 specified does not exist.
111 <term><computeroutput>
112 ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' does not exist
113 </computeroutput></term>
116 This message occurs if the right unary operator
117 specified does not exist.
126 <refsect1 id="R1-SQL-DROPOPERATOR-1">
128 <date>1998-09-22</date>
134 <command>DROP OPERATOR</command> drops an existing operator from the
136 To execute this command you must be the owner of the operator.
139 The left or right type of a left or right unary
140 operator, respectively, must be specified as <literal>NONE</literal>.
143 <refsect2 id="R2-SQL-DROPOPERATOR-3">
145 <date>1998-09-22</date>
151 The <command>DROP OPERATOR</command> statement is a
152 <productname>Postgres</productname>
157 <xref linkend="sql-createoperator-title" endterm="sql-createoperator-title">
158 for information on how to create operators.
161 It is the user's responsibility to remove any access methods and
162 operator classes that rely on the deleted operator.
167 <refsect1 id="R1-SQL-DROPOPERATOR-2">
172 Remove power operator <literal>a^n</literal> for <literal>int4</literal>:
175 DROP OPERATOR ^ (int4, int4);
179 Remove left unary negation operator (<literal>! b</literal>) for booleans:
181 DROP OPERATOR ! (none, bool);
185 Remove right unary factorial operator (<literal>i !</literal>) for
186 <literal>int4</literal>:
188 DROP OPERATOR ! (int4, none);
193 <refsect1 id="R1-SQL-DROPOPERATOR-3">
198 <refsect2 id="R2-SQL-DROPOPERATOR-4">
200 <date>1998-09-22</date>
206 There is no <command>DROP OPERATOR</command> in <acronym>SQL92</acronym>.
212 <!-- Keep this comment at the end of the file
217 sgml-minimize-attributes:nil
218 sgml-always-quote-attributes:t
221 sgml-parent-document:nil
222 sgml-default-dtd-file:"../reference.ced"
223 sgml-exposed-tags:nil
224 sgml-local-catalogs:"/usr/lib/sgml/catalog"
225 sgml-local-ecat-files:nil