1
1
<!--
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 $
3
3
Postgres documentation
4
4
-->
5
5
@@ -105,14 +105,10 @@ NOTICE RemoveFunction: Function "<replaceable class="parameter">name</replaceabl
105
105
function must be specified, as only the function with the
106
106
given name and argument types will be removed.
107
107
</para>
108
+ </refsect1>
108
109
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>
116
112
117
113
<para>
118
114
Refer to
@@ -124,58 +120,42 @@ NOTICE RemoveFunction: Function "<replaceable class="parameter">name</replaceabl
124
120
No checks are made to ensure that types, operators or access
125
121
methods that rely on the function have been removed first.
126
122
</para>
127
- </refsect2>
128
123
</refsect1>
129
124
130
- <refsect1 id="R1-SQL-DROPFUNCTION-2">
131
- <title>
132
- Usage
133
- </title>
125
+ <refsect1 id="SQL-DROPFUNCTION-examples">
126
+ <title>Examples</title>
134
127
135
128
<para>
136
129
This command removes the square root function:
137
130
138
- <programlisting>
139
- DROP FUNCTION sqrt(int4 );
140
- </programlisting>
131
+ <programlisting>
132
+ DROP FUNCTION sqrt(integer );
133
+ </programlisting>
141
134
</para>
142
135
</refsect1>
143
136
144
- <refsect1 id="R1-SQL-DROPFUNCTION-4">
145
- <title>
146
- Compatibility
147
- </title>
137
+ <refsect1 id="SQL-DROPFUNCTION-compatibility">
138
+ <title>Compatibility</title>
148
139
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:
156
142
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>
162
146
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>
173
152
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>
179
159
</refsect1>
180
160
</refentry>
181
161
0 commit comments