2 doc/src/sgml/ref/drop_language.sgml
3 PostgreSQL documentation
6 <refentry id=
"sql-droplanguage">
7 <indexterm zone=
"sql-droplanguage">
8 <primary>DROP LANGUAGE
</primary>
12 <refentrytitle>DROP LANGUAGE
</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
18 <refname>DROP LANGUAGE
</refname>
19 <refpurpose>remove a procedural language
</refpurpose>
24 DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ]
<replaceable class=
"parameter">name
</replaceable> [ CASCADE | RESTRICT ]
29 <title>Description
</title>
32 <command>DROP LANGUAGE
</command> removes the definition of a
33 previously registered procedural language. You must be a superuser
34 or the owner of the language to use
<command>DROP LANGUAGE
</command>.
39 As of
<productname>PostgreSQL
</productname> 9.1, most procedural
40 languages have been made into
<quote>extensions
</quote>, and should
41 therefore be removed with
<link linkend=
"sql-dropextension"><command>DROP EXTENSION
</command></link>
42 not
<command>DROP LANGUAGE
</command>.
48 <title>Parameters
</title>
53 <term><literal>IF EXISTS
</literal></term>
56 Do not throw an error if the language does not exist. A notice is issued
63 <term><replaceable class=
"parameter">name
</replaceable></term>
66 The name of an existing procedural language.
72 <term><literal>CASCADE
</literal></term>
75 Automatically drop objects that depend on the language (such as
76 functions in the language),
77 and in turn all objects that depend on those objects
78 (see
<xref linkend=
"ddl-depend"/>).
84 <term><literal>RESTRICT
</literal></term>
87 Refuse to drop the language if any objects depend on it. This
96 <title>Examples
</title>
99 This command removes the procedural language
100 <literal>plsample
</literal>:
103 DROP LANGUAGE plsample;
104 </programlisting></para>
108 <title>Compatibility
</title>
111 There is no
<command>DROP LANGUAGE
</command> statement in the SQL
117 <title>See Also
</title>
119 <simplelist type=
"inline">
120 <member><xref linkend=
"sql-alterlanguage"/></member>
121 <member><xref linkend=
"sql-createlanguage"/></member>