postgresql/doc/src/sgml/ref/drop_language.sgml

119 lines
2.8 KiB
Plaintext
Raw Normal View History

<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.25 2007/03/26 16:58:38 tgl Exp $
PostgreSQL documentation
-->
<refentry id="SQL-DROPLANGUAGE">
<refmeta>
<refentrytitle id="SQL-DROPLANGUAGE-TITLE">DROP LANGUAGE</refentrytitle>
<refmiscinfo>SQL - Language Statements</refmiscinfo>
</refmeta>
2003-05-04 04:23:16 +02:00
<refnamediv>
2003-05-04 04:23:16 +02:00
<refname>DROP LANGUAGE</refname>
<refpurpose>remove a procedural language</refpurpose>
</refnamediv>
2003-05-04 04:23:16 +02:00
2003-08-31 19:32:24 +02:00
<indexterm zone="sql-droplanguage">
<primary>DROP LANGUAGE</primary>
</indexterm>
<refsynopsisdiv>
2003-05-04 04:23:16 +02:00
<synopsis>
DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [ CASCADE | RESTRICT ]
2003-05-04 04:23:16 +02:00
</synopsis>
</refsynopsisdiv>
2003-05-04 04:23:16 +02:00
<refsect1>
<title>Description</title>
<para>
2003-05-04 04:23:16 +02:00
<command>DROP LANGUAGE</command> will remove the definition
of the previously registered procedural language called
<replaceable class="parameter">name</replaceable>.
You must be superuser or owner of the language to
use <command>DROP LANGUAGE</command>.
</para>
2003-05-04 04:23:16 +02:00
</refsect1>
2003-05-04 04:23:16 +02:00
<refsect1>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term><literal>IF EXISTS</literal></term>
<listitem>
<para>
Do not throw an error if the language does not exist. A notice is issued
in this case.
</para>
</listitem>
</varlistentry>
2003-05-04 04:23:16 +02:00
<varlistentry>
<term><replaceable class="PARAMETER">name</replaceable></term>
<listitem>
<para>
The name of an existing procedural language. For backward
compatibility, the name can be enclosed by single quotes.
2003-05-04 04:23:16 +02:00
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>CASCADE</literal></term>
<listitem>
<para>
Automatically drop objects that depend on the language (such as
functions in the language).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>RESTRICT</literal></term>
<listitem>
<para>
Refuse to drop the language if any objects depend on it. This
is the default.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
2003-05-04 04:23:16 +02:00
<refsect1>
<title>Examples</title>
<para>
2003-05-04 04:23:16 +02:00
This command removes the procedural language
<literal>plsample</literal>:
2003-05-04 04:23:16 +02:00
<programlisting>
DROP LANGUAGE plsample;
2003-05-04 04:23:16 +02:00
</programlisting>
</para>
</refsect1>
2003-05-04 04:23:16 +02:00
<refsect1>
<title>Compatibility</title>
<para>
There is no <command>DROP LANGUAGE</command> statement in the SQL
standard.
</para>
</refsect1>
<refsect1>
<title>See Also</title>
<simplelist type="inline">
2003-06-27 16:45:32 +02:00
<member><xref linkend="sql-alterlanguage" endterm="sql-alterlanguage-title"></member>
2003-05-04 04:23:16 +02:00
<member><xref linkend="sql-createlanguage" endterm="sql-createlanguage-title"></member>
2003-06-27 16:45:32 +02:00
<member><xref linkend="app-droplang"></member>
2003-05-04 04:23:16 +02:00
</simplelist>
</refsect1>
2003-05-04 04:23:16 +02:00
</refentry>