2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_operator.sgml,v 1.7 2000/10/05 19:48:18 momjian 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">type</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">type</replaceable></term>
51 The type of function parameters.
59 <refsect2 id="R2-SQL-DROPOPERATOR-2">
61 <date>1998-09-22</date>
70 <term><computeroutput>
72 </computeroutput></term>
75 The message returned if the command is successful.
80 <term><computeroutput>
81 ERROR: RemoveOperator: binary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' and '<replaceable class="PARAMETER">type2</replaceable>' does not exist
82 </computeroutput></term>
85 This message occurs if the specified binary operator does not exist.
90 <term><computeroutput>
91 ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' does not exist
92 </computeroutput></term>
95 This message occurs if the left unary operator
96 specified does not exist.
101 <term><computeroutput>
102 ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' does not exist
103 </computeroutput></term>
106 This message occurs if the right unary operator
107 specified does not exist.
116 <refsect1 id="R1-SQL-DROPOPERATOR-1">
118 <date>1998-09-22</date>
124 <command>DROP OPERATOR</command> drops an existing operator from the
126 To execute this command you must be the owner of the operator.
129 The left or right type of a left or right unary
130 operator, respectively, may be specified as <literal>NONE</literal>.
133 <refsect2 id="R2-SQL-DROPOPERATOR-3">
135 <date>1998-09-22</date>
141 The <command>DROP OPERATOR</command> statement is a
142 <productname>Postgres</productname>
147 <xref linkend="sql-createoperator-title" endterm="sql-createoperator-title">
148 for information on how to create operators.
151 It is the user's responsibility to remove any access methods and
152 operator classes that rely on the deleted operator.
157 <refsect1 id="R1-SQL-DROPOPERATOR-2">
162 Remove power operator <literal>a^n</literal> for <literal>int4</literal>:
165 DROP OPERATOR ^ (int4, int4);
169 Remove left unary negation operator (<literal>b !</literal>) for booleans:
171 DROP OPERATOR ! (none, bool);
175 Remove right unary factorial operator (<literal>! i</literal>) for
176 <literal>int4</literal>:
178 DROP OPERATOR ! (int4, none);
183 <refsect1 id="R1-SQL-DROPOPERATOR-3">
188 <refsect2 id="R2-SQL-DROPOPERATOR-4">
190 <date>1998-09-22</date>
196 There is no <command>DROP OPERATOR</command> in <acronym>SQL92</acronym>.
202 <!-- Keep this comment at the end of the file
207 sgml-minimize-attributes:nil
208 sgml-always-quote-attributes:t
211 sgml-parent-document:nil
212 sgml-default-dtd-file:"../reference.ced"
213 sgml-exposed-tags:nil
214 sgml-local-catalogs:"/usr/lib/sgml/catalog"
215 sgml-local-ecat-files:nil