<term><computeroutput>ERROR: RemoveAggregate: aggregate '<replaceable class="parameter">name</replaceable>' for type <replaceable class="parameter">type</replaceable> does not exist</computeroutput></term>
ERROR: RemoveAggregate: aggregate '<replaceable class="parameter">name</replaceable>' for type <replaceable class="parameter">type</replaceable> does not exist
</computeroutput></term>
<listitem>
<listitem>
<para>
<para>
This message occurs if the aggregate function specified does not
This message is returned if the specified aggregate function
exist in the database.
does not exist.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
</para>
</refsect1>
</refsect2>
</refsynopsisdiv>
<refsect1 id="R1-SQL-DROPAGGREGATE-1">
<refsect1info>
<date>1998-04-15</date>
</refsect1info>
<title>
Description
</title>
<para>
<command>DROP AGGREGATE</command> will delete an existing
aggregate definition. To execute this command the current
user must be the owner of the aggregate.
</para>
<refsect2 id="R2-SQL-DROPAGGREGATE-3">
<refsect1>
<refsect2info>
<title>Examples</title>
<date>1998-04-15</date>
</refsect2info>
<title>
Notes
</title>
<para>
<para>
Use
To remove the aggregate function <literal>myavg</literal> for type
Message returned if the command completes successfully.
Message returned if the command completes successfully.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><computeroutput>
<term><computeroutput>WARNING: RemoveFunction: Function <replaceable class="parameter">name</replaceable> (<replaceable class="parameter">types</replaceable>) does not exist</computeroutput></term>
WARNING: RemoveFunction: Function "<replaceable class="parameter">name</replaceable>" ("<replaceable class="parameter">types</replaceable>") does not exist
</computeroutput></term>
<listitem>
<listitem>
<para>
<para>
This message is given if the function specified does not
This message is output if the function specified does not exist.
exist in the current database.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
</para>
</refsect2>
</refsynopsisdiv>
<refsect1 id="R1-SQL-DROPFUNCTION-1">
<refsect1info>
<date>1998-04-15</date>
</refsect1info>
<title>
Description
</title>
<para>
DROP FUNCTION will remove the definition of an existing
function. To execute this command the user must be the
owner of the function. The input argument types to the
function must be specified, since several different functions
may exist with the same name and different argument lists.
<refmiscinfo>SQL - Language Statements</refmiscinfo>
<refmiscinfo>SQL - Language Statements</refmiscinfo>
</refmeta>
</refmeta>
<refnamediv>
<refnamediv>
<refname>
<refname>DROP OPERATOR CLASS</refname>
DROP OPERATOR CLASS
<refpurpose>remove a user-defined operator class</refpurpose>
</refname>
<refpurpose>
remove a user-defined operator class
</refpurpose>
</refnamediv>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<synopsis>
<date>2002-07-28</date>
DROP OPERATOR CLASS <replaceable class="PARAMETER">name</replaceable> USING <replaceable class="PARAMETER">index_method</replaceable> [ CASCADE | RESTRICT ]
</refsynopsisdivinfo>
</synopsis>
<synopsis>
</refsynopsisdiv>
DROP OPERATOR CLASS <replaceable class="PARAMETER">name</replaceable> USING <replaceable class="PARAMETER">access_method</replaceable> [ CASCADE | RESTRICT ]
</synopsis>
<refsect1>
<title>Description</title>
<refsect2 id="R2-SQL-DROPOPCLASS-1">
<refsect2info>
<date>2002-07-28</date>
</refsect2info>
<title>
Inputs
</title>
<para>
<para>
<command>DROP OPERATOR CLASS</command> drops an existing operator class.
To execute this command you must be the owner of the operator class.
The message returned if the command is successful.
Message returned if the command was successful.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><computeroutput>
<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>
ERROR: RemoveOperator: binary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' and '<replaceable class="PARAMETER">righttype</replaceable>' does not exist
</computeroutput></term>
<listitem>
<listitem>
<para>
<para>
This message occurs if the specified binary operator does not exist.
This message is returned if the specified binary operator does not exist.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><computeroutput>
<term><computeroutput>ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">name</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' does not exist</computeroutput></term>
ERROR: RemoveOperator: left unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">lefttype</replaceable>' does not exist
</computeroutput></term>
<listitem>
<listitem>
<para>
<para>
This message occurs if the left unary operator
This message is returned if the specified left unary operator
specified does not exist.
does not exist.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><computeroutput>
<term><computeroutput>ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">name</replaceable>' taking '<replaceable class="PARAMETER">righttype</replaceable>' does not exist</computeroutput></term>
ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">oper</replaceable>' taking '<replaceable class="PARAMETER">righttype</replaceable>' does not exist
</computeroutput></term>
<listitem>
<listitem>
<para>
<para>
This message occurs if the right unary operator
This message is returned if the specified right unary operator
specified does not exist.
does not exist.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
</para>
</refsect1>
</refsect2>
</refsynopsisdiv>
<refsect1>
<title>Examples</title>
<refsect1 id="R1-SQL-DROPOPERATOR-1">
<refsect1info>
<date>1998-09-22</date>
</refsect1info>
<title>
Description
</title>
<para>
<command>DROP OPERATOR</command> drops an existing operator from the
database.
To execute this command you must be the owner of the operator.
</para>
<para>
<para>
The left or right type of a left or right unary
Remove the power operator <literal>a^b</literal> for type <type>integer</type>:
operator, respectively, must be specified as <literal>NONE</literal>.
<programlisting>
DROP OPERATOR ^ (integer, integer);
</programlisting>
</para>
</para>
<refsect2 id="R2-SQL-DROPOPERATOR-3">
<refsect2info>
<date>1998-09-22</date>
</refsect2info>
<title>
Notes
</title>
<para>
<para>
The <command>DROP OPERATOR</command> statement is a
Remove the left unary bitwise complement operator
<productname>PostgreSQL</productname>
<literal>~b</literal> for type <type>bit</type>:
language extension.
<programlisting>
DROP OPERATOR ~ (none, bit);
</programlisting>
</para>
</para>
<para>
<para>
Refer to
Remove the right unary factorial operator <literal>x!</literal>
The message returned if the trigger is successfully dropped.
Message returned if the trigger was successfully dropped.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><computeroutput>
<term><computeroutput>ERROR: DropTrigger: there is no trigger <replaceable class="PARAMETER">name</replaceable> on relation "<replaceable class="parameter">table</replaceable>"</computeroutput></term>
ERROR: DropTrigger: there is no trigger <replaceable class="PARAMETER">name</replaceable> on relation "<replaceable class="parameter">table</replaceable>"
</computeroutput></term>
<listitem>
<listitem>
<para>
<para>
This message occurs if the trigger specified does not exist.
Message returned if the specified trigger does not exist.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
</para>
</refsect2>
</refsynopsisdiv>
<refsect1 id="R1-SQL-DROPTRIGGER-1">
<refsect1info>
<date>1998-09-22</date>
</refsect1info>
<title>
Description
</title>
<para>
<command>DROP TRIGGER</command> will remove an existing
trigger definition. To execute this command the current
user must be the owner of the table for which the trigger is defined.
</para>
</refsect1>
</refsect1>
<refsect1 id="SQL-DROPTRIGGER-examples">
<refsect1 id="SQL-DROPTRIGGER-examples">
<title>Examples</title>
<title>Examples</title>
<para>
<para>
Destroy the <literal>if_dist_exists</literal> trigger
Destroy the trigger <literal>if_dist_exists</literal> on the table
on table <literal>films</literal>:
<literal>films</literal>:
<programlisting>
<programlisting>
DROP TRIGGER if_dist_exists ON films;
DROP TRIGGER if_dist_exists ON films;
...
@@ -136,30 +114,13 @@ DROP TRIGGER if_dist_exists ON films;
...
@@ -136,30 +114,13 @@ DROP TRIGGER if_dist_exists ON films;
<refsect1 id="SQL-DROPTRIGGER-compatibility">
<refsect1 id="SQL-DROPTRIGGER-compatibility">
<title>Compatibility</title>
<title>Compatibility</title>
<variablelist>
<varlistentry>
<term>SQL92</term>
<listitem>
<para>
There is no <command>DROP TRIGGER</command> statement in
<acronym>SQL92</acronym>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>SQL99</term>
<listitem>
<para>
<para>
The <command>DROP TRIGGER</command> statement in
The <command>DROP TRIGGER</command> statement in
<productname>PostgreSQL</productname> is incompatible with
<productname>PostgreSQL</productname> is incompatible with the SQL
SQL99. In SQL99, trigger names are not local to tables, so the
standard. In the SQL standard, trigger names are not local to
command is simply <literal>DROP TRIGGER
tables, so the command is simply <literal>DROP TRIGGER
<replaceable>name</replaceable></literal>.
<replaceable>name</replaceable></literal>.
</para>
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refsect1>
<refsect1>
<refsect1>
...
@@ -169,6 +130,7 @@ DROP TRIGGER if_dist_exists ON films;
...
@@ -169,6 +130,7 @@ DROP TRIGGER if_dist_exists ON films;