head	1.28;
access;
symbols
	REL9_0_0:1.28
	REL9_1_ALPHA1:1.28
	REL9_0_RC1:1.28
	REL9_0_BETA4:1.28
	REL9_0_STABLE:1.28.0.2
	REL9_0_BETA3:1.28
	REL9_0_BETA2:1.28
	REL7_4_29:1.20
	REL8_0_25:1.21
	REL8_1_21:1.21
	REL8_2_17:1.23
	REL8_3_11:1.26
	REL8_4_4:1.27
	REL9_0_BETA1:1.28
	REL9_0_ALPHA5_BRANCH:1.27.0.12
	REL9_0_ALPHA5:1.27
	REL7_4_28:1.20
	REL8_0_24:1.21
	REL8_1_20:1.21
	REL8_2_16:1.23
	REL8_3_10:1.26
	REL8_4_3:1.27
	REL9_0_ALPHA4:1.27
	REL9_0_ALPHA4_BRANCH:1.27.0.10
	REL8_5_ALPHA3:1.27
	REL8_5_ALPHA3_BRANCH:1.27.0.8
	REL7_4_27:1.20
	REL8_0_23:1.21
	REL8_1_19:1.21
	REL8_2_15:1.23
	REL8_3_9:1.26
	REL8_4_2:1.27
	REL8_5_ALPHA2:1.27
	REL8_5_ALPHA2_BRANCH:1.27.0.6
	REL7_4_26:1.20
	REL8_0_22:1.21
	REL8_1_18:1.21
	REL8_2_14:1.23
	REL8_3_8:1.26
	REL8_4_1:1.27
	REL8_5_ALPHA1:1.27
	REL8_5_ALPHA1_BRANCH:1.27.0.4
	REL8_4_STABLE:1.27.0.2
	REL8_4_0:1.27
	REL8_4_RC2:1.27
	REL8_4_RC1:1.27
	REL8_4_BETA2:1.27
	REL8_4_BETA1:1.27
	REL7_4_25:1.20
	REL8_0_21:1.21
	REL8_1_17:1.21
	REL8_2_13:1.23
	REL8_3_7:1.26
	REL7_4_24:1.20
	REL8_0_20:1.21
	REL8_1_16:1.21
	REL8_2_12:1.23
	REL8_3_6:1.26
	REL7_4_23:1.20
	REL8_0_19:1.21
	REL8_1_15:1.21
	REL8_2_11:1.23
	REL8_3_5:1.26
	REL7_4_22:1.20
	REL8_0_18:1.21
	REL8_1_14:1.21
	REL8_2_10:1.23
	REL8_3_4:1.26
	REL7_4_21:1.20
	REL8_0_17:1.21
	REL8_1_13:1.21
	REL8_2_9:1.23
	REL8_3_3:1.26
	REL7_4_20:1.20
	REL8_0_16:1.21
	REL8_1_12:1.21
	REL8_2_8:1.23
	REL8_3_2:1.26
	REL8_2_7:1.23
	REL8_3_1:1.26
	REL8_3_STABLE:1.26.0.2
	REL8_3_0:1.26
	REL8_3_RC2:1.26
	REL7_3_21:1.15
	REL7_4_19:1.20
	REL8_0_15:1.21
	REL8_1_11:1.21
	REL8_2_6:1.23
	REL8_3_RC1:1.26
	REL8_3_BETA4:1.26
	REL8_3_BETA3:1.26
	REL8_3_BETA2:1.26
	REL8_3_BETA1:1.26
	REL7_3_20:1.15
	REL7_4_18:1.20
	REL8_0_14:1.21
	REL8_1_10:1.21
	REL8_2_5:1.23
	REL7_3_19:1.15
	REL7_4_17:1.20
	REL8_0_13:1.21
	REL8_1_9:1.21
	REL8_2_4:1.23
	REL8_0_12:1.21
	REL8_1_8:1.21
	REL8_2_3:1.23
	REL7_3_18:1.15
	REL7_4_16:1.20
	REL8_0_11:1.21
	REL8_1_7:1.21
	REL8_2_2:1.23
	REL8_0_10:1.21
	REL8_1_6:1.21
	REL8_2_1:1.23
	REL7_4_15:1.20
	REL7_3_17:1.15
	REL8_2_STABLE:1.23.0.2
	REL8_2_0:1.23
	REL8_2_RC1:1.23
	REL8_2_BETA3:1.23
	REL8_2_BETA2:1.23
	REL8_1_5:1.21
	REL8_0_9:1.21
	REL7_4_14:1.20
	REL7_3_16:1.15
	REL8_2_BETA1:1.23
	REL7_3_15:1.15
	REL7_4_13:1.20
	REL8_0_8:1.21
	REL8_1_4:1.21
	REL7_3_14:1.15
	REL7_4_12:1.20
	REL8_0_7:1.21
	REL8_1_3:1.21
	REL7_3_13:1.15
	REL7_4_11:1.20
	REL8_0_6:1.21
	REL8_1_2:1.21
	REL7_3_12:1.15
	REL7_4_10:1.20
	REL8_0_5:1.21
	REL8_1_1:1.21
	REL8_1_STABLE:1.21.0.6
	REL8_1_0:1.21
	REL8_1_0RC1:1.21
	REL8_1_0BETA4:1.21
	REL8_1_0BETA3:1.21
	REL7_3_11:1.15
	REL7_4_9:1.20
	REL8_0_4:1.21
	REL8_1_0BETA2:1.21
	REL8_1_0BETA1:1.21
	REL7_2_8:1.13
	REL7_3_10:1.15
	REL7_4_8:1.20
	REL8_0_3:1.21
	REL8_0_2:1.21
	REL7_2_7:1.13
	REL7_3_9:1.15
	REL7_4_7:1.20
	REL8_0_1:1.21
	REL8_0_STABLE:1.21.0.4
	REL8_0_0:1.21.0.2
	REL8_0_0RC5:1.21
	REL8_0_0RC4:1.21
	REL8_0_0RC3:1.21
	REL8_0_0RC2:1.21
	REL8_0_0RC1:1.21
	REL8_0_0BETA5:1.21
	REL8_0_0BETA4:1.21
	REL7_4_6:1.20
	REL7_3_8:1.15
	REL7_2_6:1.13
	REL8_0_0BETA3:1.21
	REL8_0_0BETA2:1.21
	REL7_2_5:1.13
	REL7_4_5:1.20
	REL7_3_7:1.15
	REL7_4_4:1.20
	REL8_0_0BETA1:1.21
	REL7_4_3:1.20
	REL7_4_2:1.20
	REL7_3_6:1.15
	REL7_4_1:1.20
	REL7_3_5:1.15
	REL7_4:1.20
	REL7_4_RC2:1.20
	REL7_4_STABLE:1.20.0.2
	REL7_4_RC1:1.20
	REL7_4_BETA5:1.20
	REL7_4_BETA4:1.20
	REL7_4_BETA3:1.19
	REL7_4_BETA2:1.17
	WIN32_DEV:1.17.0.2
	REL7_4_BETA1:1.17
	REL7_3_4:1.15
	REL7_3_2:1.15
	REL7_2_4:1.13
	REL7_3_STABLE:1.15.0.2
	REL7_2_3:1.13
	REL7_2_STABLE:1.13.0.2
	REL7_2:1.13
	REL7_2_RC2:1.13
	REL7_2_RC1:1.13
	REL7_2_BETA5:1.13
	REL7_2_BETA4:1.13
	REL7_2_BETA3:1.12
	REL7_2_BETA2:1.12
	REL7_2_BETA1:1.11
	REL7_1_2:1.9
	REL7_1_STABLE:1.9.0.2
	REL7_1_BETA:1.8
	REL7_1_BETA3:1.9
	REL7_1_BETA2:1.9
	REL7_1:1.9
	REL7_0_PATCHES:1.7.0.2
	REL7_0:1.7
	REL6_5_PATCHES:1.6.0.2
	REL6_5:1.6
	REL6_4:1.4.0.2;
locks; strict;
comment	@# @;


1.28
date	2010.04.03.07.23.00;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2008.11.14.10.22.46;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2007.05.15.19.13.55;	author neilc;	state Exp;
branches;
next	1.25;

1.25
date	2007.03.26.16.58.38;	author tgl;	state Exp;
branches;
next	1.24;

1.24
date	2007.01.31.23.26.03;	author momjian;	state Exp;
branches;
next	1.23;

1.23
date	2006.09.16.00.30.18;	author momjian;	state Exp;
branches;
next	1.22;

1.22
date	2006.06.16.22.27.55;	author adunstan;	state Exp;
branches;
next	1.21;

1.21
date	2003.11.29.19.51.38;	author pgsql;	state Exp;
branches;
next	1.20;

1.20
date	2003.09.22.00.16.58;	author petere;	state Exp;
branches;
next	1.19;

1.19
date	2003.09.09.18.28.53;	author tgl;	state Exp;
branches;
next	1.18;

1.18
date	2003.08.31.17.32.22;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2003.06.27.14.45.26;	author petere;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2003.05.04.02.23.16;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2002.07.12.18.43.13;	author tgl;	state Exp;
branches;
next	1.14;

1.14
date	2002.05.18.15.44.47;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2001.12.08.03.24.36;	author thomas;	state Exp;
branches;
next	1.12;

1.12
date	2001.10.26.21.17.03;	author tgl;	state Exp;
branches;
next	1.11;

1.11
date	2001.09.03.12.57.49;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2001.08.13.21.34.51;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2000.12.25.23.15.26;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.11.04.21.04.54;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	99.07.22.15.09.10;	author thomas;	state Exp;
branches;
next	1.6;

1.6
date	99.07.06.17.16.37;	author thomas;	state Exp;
branches;
next	1.5;

1.5
date	98.12.29.02.24.40;	author thomas;	state Exp;
branches;
next	1.4;

1.4
date	98.10.30.19.34.10;	author thomas;	state Exp;
branches;
next	1.3;

1.3
date	98.09.22.15.47.54;	author thomas;	state Exp;
branches;
next	1.2;

1.2
date	98.09.16.14.43.10;	author thomas;	state Exp;
branches;
next	1.1;

1.1
date	98.09.07.15.53.10;	author thomas;	state Exp;
branches;
next	;

1.17.2.1
date	2003.09.07.04.36.45;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.28
log
@Remove unnecessary xref endterm attributes and title ids

The endterm attribute is mainly useful when the toolchain does not support
automatic link target text generation for a particular situation.  In  the
past, this was required by the man page tools for all reference page links,
but that is no longer the case, and it now actually gets in the way of
proper automatic link text generation.  The only remaining use cases are
currently xrefs to refsects.
@
text
@<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.27 2008/11/14 10:22:46 petere Exp $
PostgreSQL documentation
-->

<refentry id="SQL-DROPLANGUAGE">
 <refmeta>
  <refentrytitle>DROP LANGUAGE</refentrytitle>
  <manvolnum>7</manvolnum>
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>DROP LANGUAGE</refname>
  <refpurpose>remove a procedural language</refpurpose>
 </refnamediv>

 <indexterm zone="sql-droplanguage">
  <primary>DROP LANGUAGE</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [ CASCADE | RESTRICT ]
</synopsis>
 </refsynopsisdiv>

 <refsect1>
  <title>Description</title>

  <para>
   <command>DROP LANGUAGE</command> removes the definition of a
   previously registered procedural language.  You must be a superuser
   or the owner of the language to use <command>DROP LANGUAGE</>.
  </para>
 </refsect1>
  
 <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>

   <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.
     </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>
  
 <refsect1>
  <title>Examples</title>

  <para>
   This command removes the procedural language
   <literal>plsample</literal>:

<programlisting>
DROP LANGUAGE plsample;
</programlisting>
  </para>
 </refsect1>
 
 <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">
   <member><xref linkend="sql-alterlanguage"></member>
   <member><xref linkend="sql-createlanguage"></member>
   <member><xref linkend="app-droplang"></member>
  </simplelist>
 </refsect1>

</refentry>
@


1.27
log
@Set SQL man pages to be section 7 by default, and only transform them to
another section if required by the platform (instead of the old way of
building them in section "l" and always transforming them to the
platform-specific section).

This speeds up the installation on common platforms, and it avoids some
funny business with the man page tools and build process.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.26 2007/05/15 19:13:55 neilc Exp $
d8 1
a8 1
  <refentrytitle id="SQL-DROPLANGUAGE-TITLE">DROP LANGUAGE</refentrytitle>
d111 2
a112 2
   <member><xref linkend="sql-alterlanguage" endterm="sql-alterlanguage-title"></member>
   <member><xref linkend="sql-createlanguage" endterm="sql-createlanguage-title"></member>
@


1.26
log
@Various fixes for the SGML docs. Consistently use spaces before/after
parentheses in syntax descriptions. Consistently use the present tense
when describing the basic purpose of each "DROP" command. Add a few
more hyperlinks.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.25 2007/03/26 16:58:38 tgl Exp $
d9 1
@


1.25
log
@Allow non-superuser database owners to create procedural languages.
A DBA is allowed to create a language in his database if it's marked
"tmpldbacreate" in pg_pltemplate.  The factory default is that this is set
for all standard trusted languages, but of course a superuser may adjust
the settings.  In service of this, add the long-foreseen owner column to
pg_language; renaming, dropping, and altering owner of a PL now follow
normal ownership rules instead of being superuser-only.
Jeremy Drake, with some editorialization by Tom Lane.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.24 2007/01/31 23:26:03 momjian Exp $
d31 3
a33 5
   <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>.
@


1.24
log
@Update reference documentation on may/can/might:

Standard English uses "may", "can", and "might" in different ways:

        may - permission, "You may borrow my rake."

        can - ability, "I can lift that log."

        might - possibility, "It might rain today."

Unfortunately, in conversational English, their use is often mixed, as
in, "You may use this variable to do X", when in fact, "can" is a better
choice.  Similarly, "It may crash" is better stated, "It might crash".
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.23 2006/09/16 00:30:18 momjian Exp $
d34 2
d48 1
a48 1
      Do not throw an error if the function does not exist. A notice is issued 
@


1.23
log
@Remove emacs info from footer of SGML files.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.22 2006/06/16 22:27:55 adunstan Exp $
d57 1
a57 1
      compatibility, the name may be enclosed by single quotes.
@


1.22
log
@
docs for DROP ... IF EXISTS for the following cases:
  language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.21 2003/11/29 19:51:38 pgsql Exp $
a116 17

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
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:
-->
@


1.21
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d2 1
a2 1
$PostgreSQL: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.20 2003/09/22 00:16:58 petere Exp $
d23 1
a23 1
DROP [ PROCEDURAL ] LANGUAGE <replaceable class="PARAMETER">name</replaceable> [ CASCADE | RESTRICT ]
d41 11
@


1.20
log
@Make the SQL command synopses appear less random.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.19 2003/09/09 18:28:53 tgl Exp $
@


1.19
log
@Remove a bunch of content-free Diagnostics sections, as per previous
discussion.  (Still have some work to do editing the remainder.)
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.18 2003/08/31 17:32:22 petere Exp $
d14 1
a14 1
  <refpurpose>remove a user-defined procedural language</refpurpose>
@


1.18
log
@Add/edit index entries.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.17 2003/06/27 14:45:26 petere Exp $
a66 26
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
  <title>Diagnostics</title>

  <variablelist>
   <varlistentry>
    <term><computeroutput>DROP LANGUAGE</computeroutput></term>
    <listitem>
     <para>
      This message is returned if the language was successfully dropped.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><computeroutput>ERROR: Language "<replaceable class="parameter">name</replaceable>" doesn't exist</computeroutput></term>
    <listitem>
     <para>
      This message is returned if a language called <replaceable
      class="parameter">name</replaceable> is not found in the
      database.
@


1.17
log
@First batch of object rename commands.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.16 2003/05/04 02:23:16 petere Exp $
d16 4
@


1.17.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.18 2003/08/31 17:32:22 petere Exp $
a15 4

 <indexterm zone="sql-droplanguage">
  <primary>DROP LANGUAGE</primary>
 </indexterm>
@


1.16
log
@Last round of reference page editing.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v 1.15 2002/07/12 18:43:13 tgl Exp $
d121 1
d123 1
@


1.15
log
@Second phase of committing Rod Taylor's pg_depend/pg_constraint patch.
pg_relcheck is gone; CHECK, UNIQUE, PRIMARY KEY, and FOREIGN KEY
constraints all have real live entries in pg_constraint.  pg_depend
exists, and RESTRICT/CASCADE options work on most kinds of DROP;
however, pg_depend is not yet very well populated with dependencies.
(Most of the ones that are present at this point just replace formerly
hardwired associations, such as the implicit drop of a relation's pg_type
entry when the relation is dropped.)  Need to add more logic to create
dependency entries, improve pg_dump to dump constraints in place of
indexes and triggers, and add some regression tests.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.14 2002/05/18 15:44:47 petere Exp $
d11 1
d13 2
a14 6
  <refname>
   DROP LANGUAGE
  </refname>
  <refpurpose>
   remove a user-defined procedural language
  </refpurpose>
d16 1
d18 1
a18 4
  <refsynopsisdivinfo>
   <date>1999-07-20</date>
  </refsynopsisdivinfo>
  <synopsis>
d20 5
a24 40
  </synopsis>
  
  <refsect2 id="R2-SQL-DROPLANGUAGE-1">
   <refsect2info>
    <date>1998-04-15</date>
   </refsect2info>
   <title>
    Inputs
   </title>
   <para>

    <variablelist>
     <varlistentry>
      <term><replaceable class="PARAMETER">name</replaceable></term>
      <listitem>
       <para>
	The name of an existing procedural language.  For backward
        compatibility, the name may be enclosed by single quotes.
       </para>
      </listitem>
     </varlistentry>
     <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>
    </variablelist>
a25 46
   </para>
  </refsect2>
  
  <refsect2 id="R2-SQL-DROPLANGUAGE-2">
   <refsect2info>
    <date>1998-04-15</date>
   </refsect2info>
   <title>
    Outputs
   </title>
   <para>
    <variablelist>
     <varlistentry>
      <term><computeroutput>
DROP LANGUAGE
       </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.
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
   </para>
  </refsect2>
 </refsynopsisdiv>
 
 <refsect1 id="R1-SQL-DROPLANGUAGE-1">
  <refsect1info>
   <date>1998-04-15</date>
  </refsect1info>
  <title>
   Description
  </title>
d27 1
a27 1
   <command>DROP PROCEDURAL LANGUAGE</command> will remove the definition
d31 1
d33 34
a66 17
  <refsect2 id="R2-SQL-DROPLANGUAGE-3">
   <refsect2info>
    <date>1998-04-15</date>
   </refsect2info>
   <title>
    Notes
   </title>
   <para>
    The <command>DROP PROCEDURAL LANGUAGE</command> statement is
    a <productname>PostgreSQL</productname> language extension.
   </para>
   <para>
    Refer to
    <xref linkend="sql-createlanguage" endterm="sql-createlanguage-title">
    for information on how to create procedural languages.
   </para>
  </refsect2>
d68 30
a97 5
 
 <refsect1 id="R1-SQL-DROPLANGUAGE-2">
  <title>
   Usage
  </title>
d99 2
a100 1
   This command removes the PL/Sample language:
d102 1
a102 1
   <programlisting>
d104 1
a104 1
   </programlisting>
d108 15
a122 17
 <refsect1 id="R1-SQL-DROPLANGUAGE-3">
  <title>
   Compatibility
  </title>
  
  <refsect2 id="R2-SQL-DROPLANGUAGE-5">
   <refsect2info>
    <date>1998-04-15</date>
   </refsect2info>
   <title>
    SQL92
   </title>
   <para>
    There is no <command>DROP PROCEDURAL LANGUAGE</command> in 
    <acronym>SQL92</acronym>.
   </para>
  </refsect2>
d124 1
@


1.14
log
@Revise command completion tags as per hackers message on 20 March.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.13 2001/12/08 03:24:36 thomas Exp $
d24 1
a24 1
DROP [ PROCEDURAL ] LANGUAGE <replaceable class="PARAMETER">name</replaceable>
d46 18
d65 1
a132 8
   </para>

   <para>
    No checks are made if functions or trigger procedures registered
    in this language still exist. To re-enable them without having
    to drop and recreate all the functions, the pg_proc's prolang
    attribute of the functions must be adjusted to the new object
    ID of the recreated pg_language entry for the PL.
@


1.13
log
@Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
 between Postgres and PostgreSQL.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.12 2001/10/26 21:17:03 tgl Exp $
d61 1
a61 1
DROP
@


1.12
log
@More cleanup of CREATE FUNCTION examples.
@
text
@d2 2
a3 2
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.11 2001/09/03 12:57:49 petere Exp $
Postgres documentation
d108 1
a108 1
    a <productname>Postgres</productname> language extension.
@


1.11
log
@Put some kind of grammatical uniformity in the <refpurpose> lines.
@
text
@d2 1
a2 1
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.10 2001/08/13 21:34:51 petere Exp $
d8 1
a8 3
  <refentrytitle id="SQL-DROPLANGUAGE-TITLE">
   DROP LANGUAGE
  </refentrytitle>
@


1.10
log
@Make LANCOMPILER clause in CREATE LANGUAGE optional.  Allow "identifier"
syntax for language names (instead of 'string').

createlang now handles the case where a second language uses the same call
handler as an already installed language (e.g., plperl/plperlu).

droplang now handles the reverse case, i.e., dropping a language where
the call handler is still used by another language.  Moreover, droplang
can now be used to drop any user-defined language, not just the supplied
ones.
@
text
@d2 1
a2 1
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.9 2000/12/25 23:15:26 petere Exp $
d18 1
a18 1
   Removes a user-defined procedural language
@


1.9
log
@Refine some things to create better looking man pages.
@
text
@d2 1
a2 1
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.8 2000/11/04 21:04:54 momjian Exp $
d26 1
a26 1
DROP [ PROCEDURAL ] LANGUAGE '<replaceable class="PARAMETER">name</replaceable>'
d43 2
a44 1
	The name of an existing procedural language.
d136 1
a136 1
DROP PROCEDURAL LANGUAGE 'plsample';
@


1.8
log
@Make PROCEDURAL optional in CREATE/DROP LANGUAGE.
@
text
@d2 1
a2 1
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.7 1999/07/22 15:09:10 thomas Exp $
d113 1
a113 1
    <xref linkend="sql-createlanguage-title" endterm="sql-createlanguage-title">
@


1.7
log
@Complete merge of all old man page information.
ecpg reference page still needs formatting.
@
text
@d2 1
a2 1
$Header$
d26 1
a26 1
DROP PROCEDURAL LANGUAGE '<replaceable class="PARAMETER">name</replaceable>'
@


1.6
log
@Fix markup for docbook2man man page generation.
No big deal; fixed lots of other markup at the same time.
Bigest change: make sure there is no whitespace
 in front of <term> contents.
This will probably help the other output types too.
@
text
@d1 5
d8 1
a8 1
  <refentrytitle>
d23 1
a23 1
   <date>1998-04-15</date>
d112 2
a113 1
    Refer to <command>CREATE PROCEDURAL LANGUAGE</command>
d116 1
a116 9
  </refsect2>
  
  <refsect2 id="R2-SQL-DROPLANGUAGE-4">
   <refsect2info>
    <date>1998-04-15</date>
   </refsect2info>
   <title>
    Bugs
   </title>
a143 2
  <para>
  </para>
@


1.5
log
@Clean up to ensure tag completion as required by the newest versions
 of Norm's Modular Style Sheets and jade/docbook.
From Vince Vielhaber <vev@@michvhf.com>.
@
text
@d1 3
a3 3
<REFENTRY ID="SQL-DROPLANGUAGE">
 <REFMETA>
  <REFENTRYTITLE>
d5 5
a9 5
  </REFENTRYTITLE>
  <REFMISCINFO>SQL - Language Statements</REFMISCINFO>
 </REFMETA>
 <REFNAMEDIV>
  <REFNAME>
d11 2
a12 2
  </REFNAME>
  <REFPURPOSE>
d14 1
a14 1
  </REFPURPOSE>
d16 7
a22 7
 <REFSYNOPSISDIV>
  <REFSYNOPSISDIVINFO>
   <DATE>1998-04-15</DATE>
  </REFSYNOPSISDIVINFO>
  <SYNOPSIS>
DROP PROCEDURAL LANGUAGE '<REPLACEABLE CLASS="PARAMETER">langname</REPLACEABLE>'
  </SYNOPSIS>
d24 5
a28 5
  <REFSECT2 ID="R2-SQL-DROPLANGUAGE-1">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
d30 15
a44 16
   </TITLE>
   <PARA>
   </PARA>
       <VARIABLELIST>
	<VARLISTENTRY>
	 <TERM>
	  <REPLACEABLE CLASS="PARAMETER">langname</REPLACEABLE>
	 </TERM>
	 <LISTITEM>
	  <PARA>
          The name of an existing language.
	  </PARA>
	 </LISTITEM>
	</VARLISTENTRY>
       </variablelist>
  </REFSECT2>
d46 5
a50 5
  <REFSECT2 ID="R2-SQL-DROPLANGUAGE-2">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
d52 22
a73 23
   </TITLE>
   <PARA>
       <VARIABLELIST>
	<VARLISTENTRY>
	 <TERM>
	  <ReturnValue>DROP</ReturnValue>
	 </TERM>
	 <LISTITEM>
	  <PARA>
	   This message is returned if the language is successfully dropped.
	  </PARA>
	 </LISTITEM>
	</VARLISTENTRY>
	<VARLISTENTRY>
	 <TERM>
	  <ReturnValue>
	   ERROR: Language "<replaceable class="parameter">langname</replaceable>" doesn't exist</ReturnValue>
	 </TERM>
	 <LISTITEM>
	  <PARA>
	   This message occurs if the language
	   "<replaceable class="parameter">langname</replaceable>" is
	   not found.
d77 1
a77 1
    </VARIABLELIST>
d79 2
a80 2
  </REFSECT2>
 </REFSYNOPSISDIV>
d82 5
a86 5
 <REFSECT1 ID="R1-SQL-DROPLANGUAGE-1">
  <REFSECT1INFO>
   <DATE>1998-04-15</DATE>
  </REFSECT1INFO>
  <TITLE>
d88 2
a89 2
  </TITLE>
  <PARA>
d91 3
a93 3
   of the previously registered procedural language having the name
   '<replaceable class="parameter">langname</replaceable>'.
  </PARA>
d95 5
a99 5
  <REFSECT2 ID="R2-SQL-DROPLANGUAGE-3">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
d101 2
a102 2
   </TITLE>
   <PARA>
d105 2
a106 2
   </PARA>
   <PARA>
d109 1
a109 1
   </PARA>
d112 5
a116 5
  <REFSECT2 ID="R2-SQL-DROPLANGUAGE-4">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
d118 2
a119 2
   </TITLE>
   <PARA>
d125 2
a126 2
   </PARA>
  </REFSECT2>
d129 2
a130 2
 <REFSECT1 ID="R1-SQL-DROPLANGUAGE-2">
  <TITLE>
d132 2
a133 2
  </TITLE>
  <PARA>
d135 6
a140 5
  </PARA>
  <ProgramListing>
DROP PROCEDURAL LANGUAGE 'plsample'
  </ProgramListing>
 </REFSECT1>
d142 2
a143 2
 <REFSECT1 ID="R1-SQL-DROPLANGUAGE-3">
  <TITLE>
d145 3
a147 3
  </TITLE>
  <PARA>
  </PARA>
d149 5
a153 5
  <REFSECT2 ID="R2-SQL-DROPLANGUAGE-5">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
d155 2
a156 2
   </TITLE>
   <PARA>
d158 2
a159 2
<acronym>SQL92</acronym>.
   </PARA>
d162 1
a162 2
</REFENTRY>

d167 1
a167 1
sgml-omittag:t
@


1.4
log
@Minor cleanup in markup, especially in the Output section.
@
text
@d15 1
d76 5
a80 2

   </VARIABLELIST>
@


1.3
log
@Editing and markup cleanup.
@
text
@a53 8
   </PARA>
   <VARIABLELIST>
    <VARLISTENTRY>
     <TERM>
<replaceable>status</replaceable>
     </TERM>
     <LISTITEM>
      <PARA>
d75 1
a75 6
	  </PARA>
	 </LISTITEM>
	</VARLISTENTRY>
       </variablelist>
     </LISTITEM>
    </VARLISTENTRY>
@


1.2
log
@Markup and editing adjustments...
@
text
@d20 1
a20 1
   DROP PROCEDURAL LANGUAGE '<REPLACEABLE CLASS="PARAMETER">langname</REPLACEABLE>'
a31 6
   <VARIABLELIST>
    <VARLISTENTRY>
     <TERM>
     </TERM>
     <LISTITEM>
      <PARA>
d35 1
a35 1
	  <ReturnValue><REPLACEABLE CLASS="PARAMETER">langname</REPLACEABLE></ReturnValue>
a43 3
     </LISTITEM>
    </VARLISTENTRY>
   </VARIABLELIST>
d58 1
d102 1
a102 1
   of the previously registered procedural language with the name
d115 1
a115 1
    a PostgreSQL language extension.
d118 1
a118 1
    Refer to the <command>CREATE PROCEDURAL LANGUAGE</command> statement
d148 1
a148 1
   DROP PROCEDURAL LANGUAGE 'plsample'
d167 2
a168 1
    There is no DROP PROCEDURAL LANGUAGE statement in SQL92.
@


1.1
log
@Add new reference pages. This completes the first cut at a full set
 for SQL commands.
@
text
@d175 1
a175 1
    There is no DROP PROCEDURAL LANGUAGE statement on SQL92.
@
