1999-07-06 19:16:42 +02:00
<refentry id="SQL-DROPOPERATOR">
<refmeta>
<refentrytitle>
1998-09-07 17:53:12 +02:00
DROP OPERATOR
1999-07-06 19:16:42 +02:00
</refentrytitle>
<refmiscinfo>SQL - Language Statements</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
1998-09-07 17:53:12 +02:00
DROP OPERATOR
1999-07-06 19:16:42 +02:00
</refname>
<refpurpose>
1998-09-07 17:53:12 +02:00
Removes an operator from the database
1999-07-06 19:16:42 +02:00
</refpurpose>
1998-12-29 03:24:47 +01:00
</refnamediv>
1998-09-07 17:53:12 +02:00
1999-07-06 19:16:42 +02:00
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1998-09-22</date>
</refsynopsisdivinfo>
<synopsis>
DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable class="PARAMETER">type</replaceable> | NONE [,...] )
</synopsis>
1998-09-07 17:53:12 +02:00
1999-07-06 19:16:42 +02:00
<refsect2 id="R2-SQL-DROPOPERATOR-1">
<refsect2info>
<date>1998-09-22</date>
</refsect2info>
<title>
1998-09-07 17:53:12 +02:00
Inputs
1999-07-06 19:16:42 +02:00
</title>
<para>
<variablelist>
<varlistentry>
<term><replaceable class="parameter">id</replaceable></term>
<listitem>
<para>
The identifier of an existing operator.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">type</replaceable></term>
<listitem>
<para>
The type of function parameters.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect2>
<refsect2 id="R2-SQL-DROPOPERATOR-2">
<refsect2info>
<date>1998-09-22</date>
</refsect2info>
<title>
1998-09-07 17:53:12 +02:00
Outputs
1999-07-06 19:16:42 +02:00
</title>
<para>
1998-10-30 20:34:40 +01:00
1999-07-06 19:16:42 +02:00
<variablelist>
<varlistentry>
<term><computeroutput>
DROP
</computeroutput></term>
<listitem>
<para>
The message returned if the command is successful.
1998-12-29 03:24:47 +01:00
</para>
</listitem>
</varlistentry>
1999-07-06 19:16:42 +02:00
<varlistentry>
<term><computeroutput>
ERROR: RemoveOperator: binary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' and '<replaceable class="PARAMETER">type2</replaceable>' does not exist
</computeroutput></term>
<listitem>
<para>
This message occurs if the specified binary operator does not exist.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><computeroutput>
ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' does not exist
</computeroutput></term>
<listitem>
<para>
This message occurs if the specified left unary operator
specified does not exist.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><computeroutput>
ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">type</replaceable>' does not exist
</computeroutput></term>
<listitem>
<para>
This message occurs if the specified right unary operator
specified does not exist.
</para>
</listitem>
</varlistentry>
</variablelist>
1998-12-29 03:24:47 +01:00
</para>
1999-07-06 19:16:42 +02:00
</refsect2>
</refsynopsisdiv>
<refsect1 id="R1-SQL-DROPOPERATOR-1">
<refsect1info>
<date>1998-09-22</date>
</refsect1info>
<title>
1998-09-07 17:53:12 +02:00
Description
1999-07-06 19:16:42 +02:00
</title>
<para>
<command>DROP OPERATOR</command> drops an existing operator from the
1998-09-07 17:53:12 +02:00
database.
To execute this command you must be the owner of the operator.
1999-07-06 19:16:42 +02:00
</para>
<para>
1998-09-07 17:53:12 +02:00
The left or right type of a left or right unary
1999-07-06 19:16:42 +02:00
operator, respectively, may be specified as <literal>NONE</literal>.
</para>
<refsect2 id="R2-SQL-DROPOPERATOR-3">
<refsect2info>
<date>1998-09-22</date>
</refsect2info>
<title>
1998-09-07 17:53:12 +02:00
Notes
1999-07-06 19:16:42 +02:00
</title>
<para>
1998-09-22 17:48:03 +02:00
The <command>DROP OPERATOR</command> statement is a
1999-07-06 19:16:42 +02:00
<productname>Postgres</productname>
1998-09-07 17:53:12 +02:00
language extension.
1999-07-06 19:16:42 +02:00
</para>
<para>
1998-09-22 17:48:03 +02:00
Refer to <command>CREATE OPERATOR</command> for
1998-09-07 17:53:12 +02:00
information on how to create operators.
1999-07-06 19:16:42 +02:00
</para>
<para>
1998-09-22 17:48:03 +02:00
It is the user's responsibility to remove any access methods and
operator classes that rely on the deleted operator.
1999-07-06 19:16:42 +02:00
</para>
</refsect2>
1998-12-29 03:24:47 +01:00
</refsect1>
1999-07-06 19:16:42 +02:00
<refsect1 id="R1-SQL-DROPOPERATOR-2">
<title>
1998-09-07 17:53:12 +02:00
Usage
1999-07-06 19:16:42 +02:00
</title>
<para>
1998-09-07 17:53:12 +02:00
Remove power operator <literal>a^n</literal> for <literal>int4</literal>:
1999-07-06 19:16:42 +02:00
<programlisting>
1998-09-22 17:48:03 +02:00
DROP OPERATOR ^ (int4, int4);
1999-07-06 19:16:42 +02:00
</programlisting>
</para>
<para>
Remove left unary negation operator (<literal>b !</literal>) for booleans:
<programlisting>
1998-09-22 17:48:03 +02:00
DROP OPERATOR ! (none, bool);
1999-07-06 19:16:42 +02:00
</programlisting>
</para>
<para>
Remove right unary factorial operator (<literal>! i</literal>) for
1998-09-07 17:53:12 +02:00
<literal>int4</literal>:
1999-07-06 19:16:42 +02:00
<programlisting>
1998-09-22 17:48:03 +02:00
DROP OPERATOR ! (int4, none);
1999-07-06 19:16:42 +02:00
</programlisting>
</para>
</refsect1>
1998-09-07 17:53:12 +02:00
1999-07-06 19:16:42 +02:00
<refsect1 id="R1-SQL-DROPOPERATOR-3">
<title>
1998-09-07 17:53:12 +02:00
Compatibility
1999-07-06 19:16:42 +02:00
</title>
<para>
</para>
<refsect2 id="R2-SQL-DROPOPERATOR-4">
<refsect2info>
<date>1998-09-22</date>
</refsect2info>
<title>
1998-09-07 17:53:12 +02:00
SQL92
1999-07-06 19:16:42 +02:00
</title>
<para>
There is no <command>DROP OPERATOR</command> in <acronym>SQL92</acronym>.
</para>
1998-09-07 17:53:12 +02:00
</refsect2>
</refsect1>
1999-07-06 19:16:42 +02:00
</refentry>
1998-09-07 17:53:12 +02:00
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
1999-07-06 19:16:42 +02:00
sgml-omittag:nil
1998-09-07 17:53:12 +02:00
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->