2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_function.sgml,v 1.28 2003/09/22 00:16:58 petere Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-DROPFUNCTION">
8 <refentrytitle id="SQL-DROPFUNCTION-TITLE">DROP FUNCTION</refentrytitle>
9 <refmiscinfo>SQL - Language Statements</refmiscinfo>
13 <refname>DROP FUNCTION</refname>
14 <refpurpose>remove a function</refpurpose>
17 <indexterm zone="sql-dropfunction">
18 <primary>DROP FUNCTION</primary>
23 DROP FUNCTION <replaceable class="parameter">name</replaceable> ( [ <replaceable class="parameter">type</replaceable> [, ...] ] ) [ CASCADE | RESTRICT ]
28 <title>Description</title>
31 <command>DROP FUNCTION</command> removes the definition of an existing
32 function. To execute this command the user must be the
33 owner of the function. The argument types to the
34 function must be specified, since several different functions
35 may exist with the same name and different argument lists.
40 <title>Parameters</title>
44 <term><replaceable class="parameter">name</replaceable></term>
47 The name (optionally schema-qualified) of an existing function.
53 <term><replaceable class="parameter">type</replaceable></term>
56 The data type of an argument of the function.
62 <term><literal>CASCADE</literal></term>
65 Automatically drop objects that depend on the function (such as
66 operators or triggers).
72 <term><literal>RESTRICT</literal></term>
75 Refuse to drop the function if any objects depend on it. This
83 <refsect1 id="SQL-DROPFUNCTION-examples">
84 <title>Examples</title>
87 This command removes the square root function:
90 DROP FUNCTION sqrt(integer);
95 <refsect1 id="SQL-DROPFUNCTION-compatibility">
96 <title>Compatibility</title>
99 A <command>DROP FUNCTION</command> statement is defined in the SQL
100 standard, but it is not compatible with this command.
105 <title>See Also</title>
107 <simplelist type="inline">
108 <member><xref linkend="sql-createfunction" endterm="sql-createfunction-title"></member>
109 <member><xref linkend="sql-alterfunction" endterm="sql-alterfunction-title"></member>
115 <!-- Keep this comment at the end of the file
120 sgml-minimize-attributes:nil
121 sgml-always-quote-attributes:t
124 sgml-parent-document:nil
125 sgml-default-dtd-file:"../reference.ced"
126 sgml-exposed-tags:nil
127 sgml-local-catalogs:"/usr/lib/sgml/catalog"
128 sgml-local-ecat-files:nil