2 doc/src/sgml/ref/drop_language.sgml
3 PostgreSQL documentation
6 <refentry id="SQL-DROPLANGUAGE">
8 <refentrytitle>DROP LANGUAGE</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements</refmiscinfo>
14 <refname>DROP LANGUAGE</refname>
15 <refpurpose>remove a procedural language</refpurpose>
18 <indexterm zone="sql-droplanguage">
19 <primary>DROP LANGUAGE</primary>
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</>.
39 As of <productname>PostgreSQL</productname> 9.1, most procedural
40 languages have been made into <quote>extensions</>, and should
41 therefore be removed with <xref linkend="sql-dropextension">
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. For backward
67 compatibility, the name can be enclosed by single quotes.
73 <term><literal>CASCADE</literal></term>
76 Automatically drop objects that depend on the language (such as
77 functions in the language).
83 <term><literal>RESTRICT</literal></term>
86 Refuse to drop the language if any objects depend on it. This
95 <title>Examples</title>
98 This command removes the procedural language
99 <literal>plsample</literal>:
102 DROP LANGUAGE plsample;
103 </programlisting></para>
107 <title>Compatibility</title>
110 There is no <command>DROP LANGUAGE</command> statement in the SQL
116 <title>See Also</title>
118 <simplelist type="inline">
119 <member><xref linkend="sql-alterlanguage"></member>
120 <member><xref linkend="sql-createlanguage"></member>
121 <member><xref linkend="app-droplang"></member>