2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_operator.sgml,v 1.19 2003/05/04 02:23:16 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>
13 <refname>DROP OPERATOR</refname>
14 <refpurpose>remove a user-defined operator</refpurpose>
19 DROP OPERATOR <replaceable class="PARAMETER">name</replaceable> ( <replaceable class="PARAMETER">lefttype</replaceable> | NONE , <replaceable class="PARAMETER">righttype</replaceable> | NONE ) [ CASCADE | RESTRICT ]
24 <title>Description</title>
27 <command>DROP OPERATOR</command> drops an existing operator from
28 the database system. To execute this command you must be the owner
34 <title>Parameters</title>
38 <term><replaceable class="parameter">name</replaceable></term>
41 The name (optionally schema-qualified) of an existing operator.
47 <term><replaceable class="parameter">lefttype</replaceable></term>
50 The data type of the operator's left operand; write
51 <literal>NONE</literal> if the operator has no left operand.
57 <term><replaceable class="parameter">righttype</replaceable></term>
60 The data type of the operator's right operand; write
61 <literal>NONE</literal> if the operator has no right operand.
67 <term><literal>CASCADE</literal></term>
70 Automatically drop objects that depend on the operator.
76 <term><literal>RESTRICT</literal></term>
79 Refuse to drop the operator if any objects depend on it. This
88 <title>Diagnostics</title>
92 <term><computeroutput>DROP OPERATOR</computeroutput></term>
95 Message returned if the command was successful.
101 <term><computeroutput>ERROR: RemoveOperator: binary operator '<replaceable class="PARAMETER">name</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' and '<replaceable class="PARAMETER">righttype</replaceable>' does not exist</computeroutput></term>
104 This message is returned if the specified binary operator does not exist.
110 <term><computeroutput>ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">name</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' does not exist</computeroutput></term>
113 This message is returned if the specified left unary operator
120 <term><computeroutput>ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">name</replaceable>' taking '<replaceable class="PARAMETER">righttype</replaceable>' does not exist</computeroutput></term>
123 This message is returned if the specified right unary operator
132 <title>Examples</title>
135 Remove the power operator <literal>a^b</literal> for type <type>integer</type>:
137 DROP OPERATOR ^ (integer, integer);
142 Remove the left unary bitwise complement operator
143 <literal>~b</literal> for type <type>bit</type>:
145 DROP OPERATOR ~ (none, bit);
150 Remove the right unary factorial operator <literal>x!</literal>
151 for type <type>integer</type>:
153 DROP OPERATOR ! (integer, none);
159 <title>Compatibility</title>
162 There is no <command>DROP OPERATOR</command> statement in the SQL standard.
167 <title>See Also</title>
169 <simplelist type="inline">
170 <member><xref linkend="sql-createoperator" endterm="sql-createoperator-title"></member>
176 <!-- Keep this comment at the end of the file
181 sgml-minimize-attributes:nil
182 sgml-always-quote-attributes:t
185 sgml-parent-document:nil
186 sgml-default-dtd-file:"../reference.ced"
187 sgml-exposed-tags:nil
188 sgml-local-catalogs:"/usr/lib/sgml/catalog"
189 sgml-local-ecat-files:nil