1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2002-07-12 20:43:19 +02:00
|
|
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.15 2002/07/12 18:43:13 tgl Exp $
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refentry id="SQL-DROPLANGUAGE">
|
|
|
|
<refmeta>
|
2001-10-26 23:17:03 +02:00
|
|
|
<refentrytitle id="SQL-DROPLANGUAGE-TITLE">DROP LANGUAGE</refentrytitle>
|
1999-07-06 19:16:42 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>
|
1998-09-07 17:53:12 +02:00
|
|
|
DROP LANGUAGE
|
1999-07-06 19:16:42 +02:00
|
|
|
</refname>
|
|
|
|
<refpurpose>
|
2001-09-03 14:57:50 +02:00
|
|
|
remove a user-defined procedural language
|
1999-07-06 19:16:42 +02:00
|
|
|
</refpurpose>
|
1998-12-29 03:24:47 +01:00
|
|
|
</refnamediv>
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<refsynopsisdivinfo>
|
1999-07-22 17:09:15 +02:00
|
|
|
<date>1999-07-20</date>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refsynopsisdivinfo>
|
|
|
|
<synopsis>
|
2002-07-12 20:43:19 +02:00
|
|
|
DROP [ PROCEDURAL ] LANGUAGE <replaceable class="PARAMETER">name</replaceable> [ CASCADE | RESTRICT ]
|
1999-07-06 19:16:42 +02:00
|
|
|
</synopsis>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect2 id="R2-SQL-DROPLANGUAGE-1">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-04-15</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Inputs
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable class="PARAMETER">name</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2001-08-13 23:34:54 +02:00
|
|
|
The name of an existing procedural language. For backward
|
|
|
|
compatibility, the name may be enclosed by single quotes.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2002-07-12 20:43:19 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>CASCADE</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Automatically drop objects that depend on the language
|
|
|
|
(such as functions in the language).
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>RESTRICT</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Refuse to drop the language if there are any dependent objects.
|
|
|
|
This is the default.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
1999-07-06 19:16:42 +02:00
|
|
|
</variablelist>
|
2002-07-12 20:43:19 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
</refsect2>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect2 id="R2-SQL-DROPLANGUAGE-2">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-04-15</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Outputs
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><computeroutput>
|
2002-05-18 17:44:48 +02:00
|
|
|
DROP LANGUAGE
|
1999-07-06 19:16:42 +02:00
|
|
|
</computeroutput></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
This message is returned if the language is successfully dropped.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><computeroutput>
|
|
|
|
ERROR: Language "<replaceable class="parameter">name</replaceable>" doesn't exist
|
|
|
|
</computeroutput></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
This message occurs if a language called
|
|
|
|
<replaceable class="parameter">name</replaceable> is
|
|
|
|
not found in the database.
|
1998-12-29 03:24:47 +01:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
1999-07-06 19:16:42 +02:00
|
|
|
</variablelist>
|
1998-12-29 03:24:47 +01:00
|
|
|
</para>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refsect2>
|
|
|
|
</refsynopsisdiv>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect1 id="R1-SQL-DROPLANGUAGE-1">
|
|
|
|
<refsect1info>
|
|
|
|
<date>1998-04-15</date>
|
|
|
|
</refsect1info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Description
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-07 17:53:12 +02:00
|
|
|
<command>DROP PROCEDURAL LANGUAGE</command> will remove the definition
|
1999-07-06 19:16:42 +02:00
|
|
|
of the previously registered procedural language called
|
|
|
|
<replaceable class="parameter">name</replaceable>.
|
|
|
|
</para>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect2 id="R2-SQL-DROPLANGUAGE-3">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-04-15</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Notes
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-07 17:53:12 +02:00
|
|
|
The <command>DROP PROCEDURAL LANGUAGE</command> statement is
|
2001-12-08 04:24:40 +01:00
|
|
|
a <productname>PostgreSQL</productname> language extension.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
<para>
|
1999-07-22 17:09:15 +02:00
|
|
|
Refer to
|
2000-12-26 00:15:27 +01:00
|
|
|
<xref linkend="sql-createlanguage" endterm="sql-createlanguage-title">
|
1998-09-07 17:53:12 +02:00
|
|
|
for information on how to create procedural languages.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
</refsect2>
|
1998-09-07 17:53:12 +02:00
|
|
|
</refsect1>
|
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect1 id="R1-SQL-DROPLANGUAGE-2">
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Usage
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-07 17:53:12 +02:00
|
|
|
This command removes the PL/Sample language:
|
1999-07-06 19:16:42 +02:00
|
|
|
|
|
|
|
<programlisting>
|
2001-08-13 23:34:54 +02:00
|
|
|
DROP LANGUAGE plsample;
|
1999-07-06 19:16:42 +02:00
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect1 id="R1-SQL-DROPLANGUAGE-3">
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Compatibility
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect2 id="R2-SQL-DROPLANGUAGE-5">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-04-15</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
SQL92
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-22 17:48:03 +02:00
|
|
|
There is no <command>DROP PROCEDURAL LANGUAGE</command> in
|
1999-07-06 19:16:42 +02:00
|
|
|
<acronym>SQL92</acronym>.
|
|
|
|
</para>
|
1998-09-07 17:53:12 +02:00
|
|
|
</refsect2>
|
|
|
|
</refsect1>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refentry>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
1999-07-06 19:16:42 +02:00
|
|
|
sgml-omittag:nil
|
1998-09-07 17:53:12 +02:00
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
-->
|