11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_function.sgml,v 1.13 2001/09/03 12:57:49 petere Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_function.sgml,v 1.14 2001/09/13 19:40:34 petere Exp $
33Postgres documentation
44-->
55
@@ -105,14 +105,10 @@ NOTICE RemoveFunction: Function "<replaceable class="parameter">name</replaceabl
105105 function must be specified, as only the function with the
106106 given name and argument types will be removed.
107107 </para>
108+ </refsect1>
108109
109- <refsect2 id="R2-SQL-DROPFUNCTION-3">
110- <refsect2info>
111- <date>1998-04-15</date>
112- </refsect2info>
113- <title>
114- Notes
115- </title>
110+ <refsect1 id="SQL-DROPFUNCTION-notes">
111+ <title>Notes</title>
116112
117113 <para>
118114 Refer to
@@ -124,58 +120,42 @@ NOTICE RemoveFunction: Function "<replaceable class="parameter">name</replaceabl
124120 No checks are made to ensure that types, operators or access
125121 methods that rely on the function have been removed first.
126122 </para>
127- </refsect2>
128123 </refsect1>
129124
130- <refsect1 id="R1-SQL-DROPFUNCTION-2">
131- <title>
132- Usage
133- </title>
125+ <refsect1 id="SQL-DROPFUNCTION-examples">
126+ <title>Examples</title>
134127
135128 <para>
136129 This command removes the square root function:
137130
138- <programlisting>
139- DROP FUNCTION sqrt(int4 );
140- </programlisting>
131+ <programlisting>
132+ DROP FUNCTION sqrt(integer );
133+ </programlisting>
141134 </para>
142135 </refsect1>
143136
144- <refsect1 id="R1-SQL-DROPFUNCTION-4">
145- <title>
146- Compatibility
147- </title>
137+ <refsect1 id="SQL-DROPFUNCTION-compatibility">
138+ <title>Compatibility</title>
148139
149- <refsect2 id="R2-SQL-DROPFUNCTION-4">
150- <refsect2info>
151- <date>1999-07-20</date>
152- </refsect2info>
153- <title>
154- SQL92
155- </title>
140+ <para>
141+ A <command>DROP FUNCTION</command> statement is defined in SQL99. One of its syntax forms is:
156142
157- <para>
158- <command>DROP FUNCTION</command>
159- is a <productname>Postgres</productname> language extension.
160- </para>
161- </refsect2>
143+ <synopsis>
144+ DROP FUNCTION <replaceable class="parameter">name</replaceable> (<replaceable>arg</>, ...) { RESTRICT | CASCADE }
145+ </synopsis>
162146
163- <refsect2 id="R2-SQL-DROPFUNCTION-5">
164- <refsect2info>
165- <date>1998-04-15</date>
166- </refsect2info>
167- <title>
168- SQL/PSM
169- </title>
170- <para>
171- SQL/PSM is a standard to enable function extensibility.
172- The SQL/PSM DROP FUNCTION statement has the following syntax:
147+ where <literal>CASCADE</> specifies dropping all objects that
148+ depend on the function and <literal>RESTRICT</literal> refuses to
149+ drop the function if dependent objects exist.
150+ </para>
151+ </refsect1>
173152
174- <synopsis>
175- DROP [ SPECIFIC ] FUNCTION <replaceable class="parameter">name</replaceable> { RESTRICT | CASCADE }
176- </synopsis>
177- </para>
178- </refsect2>
153+ <refsect1>
154+ <title>See Also</title>
155+
156+ <simplelist type="inline">
157+ <member><xref linkend="sql-createfunction"></member>
158+ </simplelist>
179159 </refsect1>
180160</refentry>
181161