head	1.26;
access;
symbols
	REL9_0_0:1.26
	REL9_1_ALPHA1:1.26
	REL9_0_RC1:1.26
	REL9_0_BETA4:1.26
	REL9_0_STABLE:1.26.0.2
	REL9_0_BETA3:1.26
	REL9_0_BETA2:1.26
	REL7_4_29:1.18
	REL8_0_25:1.20
	REL8_1_21:1.21
	REL8_2_17:1.23.2.1
	REL8_3_11:1.24
	REL8_4_4:1.25
	REL9_0_BETA1:1.26
	REL9_0_ALPHA5_BRANCH:1.25.0.12
	REL9_0_ALPHA5:1.25
	REL7_4_28:1.18
	REL8_0_24:1.20
	REL8_1_20:1.21
	REL8_2_16:1.23.2.1
	REL8_3_10:1.24
	REL8_4_3:1.25
	REL9_0_ALPHA4:1.25
	REL9_0_ALPHA4_BRANCH:1.25.0.10
	REL8_5_ALPHA3:1.25
	REL8_5_ALPHA3_BRANCH:1.25.0.8
	REL7_4_27:1.18
	REL8_0_23:1.20
	REL8_1_19:1.21
	REL8_2_15:1.23.2.1
	REL8_3_9:1.24
	REL8_4_2:1.25
	REL8_5_ALPHA2:1.25
	REL8_5_ALPHA2_BRANCH:1.25.0.6
	REL7_4_26:1.18
	REL8_0_22:1.20
	REL8_1_18:1.21
	REL8_2_14:1.23.2.1
	REL8_3_8:1.24
	REL8_4_1:1.25
	REL8_5_ALPHA1:1.25
	REL8_5_ALPHA1_BRANCH:1.25.0.4
	REL8_4_STABLE:1.25.0.2
	REL8_4_0:1.25
	REL8_4_RC2:1.25
	REL8_4_RC1:1.25
	REL8_4_BETA2:1.25
	REL8_4_BETA1:1.25
	REL7_4_25:1.18
	REL8_0_21:1.20
	REL8_1_17:1.21
	REL8_2_13:1.23.2.1
	REL8_3_7:1.24
	REL7_4_24:1.18
	REL8_0_20:1.20
	REL8_1_16:1.21
	REL8_2_12:1.23.2.1
	REL8_3_6:1.24
	REL7_4_23:1.18
	REL8_0_19:1.20
	REL8_1_15:1.21
	REL8_2_11:1.23.2.1
	REL8_3_5:1.24
	REL7_4_22:1.18
	REL8_0_18:1.20
	REL8_1_14:1.21
	REL8_2_10:1.23.2.1
	REL8_3_4:1.24
	REL7_4_21:1.18
	REL8_0_17:1.20
	REL8_1_13:1.21
	REL8_2_9:1.23.2.1
	REL8_3_3:1.24
	REL7_4_20:1.18
	REL8_0_16:1.20
	REL8_1_12:1.21
	REL8_2_8:1.23.2.1
	REL8_3_2:1.24
	REL8_2_7:1.23.2.1
	REL8_3_1:1.24
	REL8_3_STABLE:1.24.0.2
	REL8_3_0:1.24
	REL8_3_RC2:1.24
	REL7_3_21:1.15
	REL7_4_19:1.18
	REL8_0_15:1.20
	REL8_1_11:1.21
	REL8_2_6:1.23.2.1
	REL8_3_RC1:1.24
	REL8_3_BETA4:1.24
	REL8_3_BETA3:1.24
	REL8_3_BETA2:1.24
	REL8_3_BETA1:1.24
	REL7_3_20:1.15
	REL7_4_18:1.18
	REL8_0_14:1.20
	REL8_1_10:1.21
	REL8_2_5:1.23.2.1
	REL7_3_19:1.15
	REL7_4_17:1.18
	REL8_0_13:1.20
	REL8_1_9:1.21
	REL8_2_4:1.23
	REL8_0_12:1.20
	REL8_1_8:1.21
	REL8_2_3:1.23
	REL7_3_18:1.15
	REL7_4_16:1.18
	REL8_0_11:1.20
	REL8_1_7:1.21
	REL8_2_2:1.23
	REL8_0_10:1.20
	REL8_1_6:1.21
	REL8_2_1:1.23
	REL7_4_15:1.18
	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.20
	REL7_4_14:1.18
	REL7_3_16:1.15
	REL8_2_BETA1:1.23
	REL7_3_15:1.15
	REL7_4_13:1.18
	REL8_0_8:1.20
	REL8_1_4:1.21
	REL7_3_14:1.15
	REL7_4_12:1.18
	REL8_0_7:1.20
	REL8_1_3:1.21
	REL7_3_13:1.15
	REL7_4_11:1.18
	REL8_0_6:1.20
	REL8_1_2:1.21
	REL7_3_12:1.15
	REL7_4_10:1.18
	REL8_0_5:1.20
	REL8_1_1:1.21
	REL8_1_STABLE:1.21.0.2
	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.18
	REL8_0_4:1.20
	REL8_1_0BETA2:1.21
	REL8_1_0BETA1:1.21
	REL7_2_8:1.14
	REL7_3_10:1.15
	REL7_4_8:1.18
	REL8_0_3:1.20
	REL8_0_2:1.20
	REL7_2_7:1.14
	REL7_3_9:1.15
	REL7_4_7:1.18
	REL8_0_1:1.20
	REL8_0_STABLE:1.20.0.4
	REL8_0_0:1.20.0.2
	REL8_0_0RC5:1.20
	REL8_0_0RC4:1.20
	REL8_0_0RC3:1.19
	REL8_0_0RC2:1.19
	REL8_0_0RC1:1.19
	REL8_0_0BETA5:1.19
	REL8_0_0BETA4:1.19
	REL7_4_6:1.18
	REL7_3_8:1.15
	REL7_2_6:1.14
	REL8_0_0BETA3:1.19
	REL8_0_0BETA2:1.19
	REL7_2_5:1.14
	REL7_4_5:1.18
	REL7_3_7:1.15
	REL7_4_4:1.18
	REL8_0_0BETA1:1.19
	REL7_4_3:1.18
	REL7_4_2:1.18
	REL7_3_6:1.15
	REL7_4_1:1.18
	REL7_3_5:1.15
	REL7_4:1.18
	REL7_4_RC2:1.18
	REL7_4_STABLE:1.18.0.2
	REL7_4_RC1:1.18
	REL7_4_BETA5:1.18
	REL7_4_BETA4:1.18
	REL7_4_BETA3:1.18
	REL7_4_BETA2:1.16
	WIN32_DEV:1.16.0.2
	REL7_4_BETA1:1.16
	REL7_3_4:1.15
	REL7_3_2:1.15
	REL7_2_4:1.14
	REL7_3_STABLE:1.15.0.2
	REL7_2_3:1.14
	REL7_2_STABLE:1.14.0.2
	REL7_2:1.14
	REL7_2_RC2:1.14
	REL7_2_RC1:1.14
	REL7_2_BETA5:1.13
	REL7_2_BETA4:1.13
	REL7_2_BETA3:1.12
	REL7_2_BETA2:1.12
	REL7_2_BETA1:1.12
	REL7_1_2:1.11
	REL7_1_STABLE:1.11.0.4
	REL7_1_BETA:1.11
	REL7_1_BETA3:1.11
	REL7_1_BETA2:1.11
	REL7_1:1.11
	REL7_0_PATCHES:1.11.0.2
	REL7_0:1.11
	REL6_5_PATCHES:1.6.0.2
	REL6_5:1.6
	REL6_4:1.4.0.2;
locks; strict;
comment	@# @;


1.26
date	2010.04.03.07.23.01;	author petere;	state Exp;
branches;
next	1.25;

1.25
date	2008.11.14.10.22.47;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2007.05.15.19.43.51;	author neilc;	state Exp;
branches;
next	1.23;

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

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

1.21
date	2005.07.26.23.24.02;	author tgl;	state Exp;
branches;
next	1.20;

1.20
date	2005.01.04.00.39.53;	author tgl;	state Exp;
branches;
next	1.19;

1.19
date	2003.11.29.19.51.38;	author pgsql;	state Exp;
branches;
next	1.18;

1.18
date	2003.09.12.00.12.47;	author tgl;	state Exp;
branches;
next	1.17;

1.17
date	2003.08.31.17.32.23;	author petere;	state Exp;
branches;
next	1.16;

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

1.15
date	2002.02.27.21.14.54;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2002.01.20.22.19.56;	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.09.03.12.57.50;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.03.27.17.14.42;	author thomas;	state Exp;
branches;
next	1.10;

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

1.9
date	99.12.07.22.41.41;	author momjian;	state Exp;
branches;
next	1.8;

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

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

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

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

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

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

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

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

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

1.23.2.1
date	2007.05.15.19.43.59;	author neilc;	state Exp;
branches;
next	;


desc
@@


1.26
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_user.sgml,v 1.25 2008/11/14 10:22:47 petere Exp $
PostgreSQL documentation
-->

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

 <refnamediv>
  <refname>DROP USER</refname>
  <refpurpose>remove a database role</refpurpose>
 </refnamediv>

 <indexterm zone="sql-dropuser">
  <primary>DROP USER</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
DROP USER [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...]
</synopsis>
 </refsynopsisdiv>

 <refsect1>
  <title>Description</title>

  <para>
   <command>DROP USER</command> is now an alias for
   <xref linkend="sql-droprole">.
  </para>
 </refsect1>

 <refsect1>
  <title>Compatibility</title>

  <para>
   The <command>DROP USER</command> statement is a
   <productname>PostgreSQL</productname> extension.  The SQL standard
   leaves the definition of users to the implementation.
  </para>
 </refsect1>

 <refsect1>
  <title>See Also</title>

  <simplelist type="inline">
   <member><xref linkend="sql-droprole"></member>
  </simplelist>
 </refsect1>

</refentry>
@


1.25
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_user.sgml,v 1.24 2007/05/15 19:43:51 neilc Exp $
d8 1
a8 1
  <refentrytitle id="SQL-DROPUSER-TITLE">DROP USER</refentrytitle>
d33 1
a33 1
   <xref linkend="sql-droprole" endterm="sql-droprole-title">.
d51 1
a51 1
   <member><xref linkend="sql-droprole" endterm="sql-droprole-title"></member>
@


1.24
log
@Fix a bunch of bad grammar in the docs: "<link>, which see for more
information" is un-good English.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.23 2006/09/16 00:30:18 momjian Exp $
d9 1
@


1.23
log
@Remove emacs info from footer of SGML files.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.22 2006/02/04 19:06:46 adunstan Exp $
d32 1
a32 2
   <xref linkend="sql-droprole" endterm="sql-droprole-title">,
   which see for more information.
@


1.23.2.1
log
@Fix a bunch of bad grammar in the docs: "<link>, which see for more
information" is un-good English.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.23 2006/09/16 00:30:18 momjian Exp $
d32 2
a33 1
   <xref linkend="sql-droprole" endterm="sql-droprole-title">.
@


1.22
log
@
DROP IF EXISTS for ROLE/USER/GROUP
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.21 2005/07/26 23:24:02 tgl Exp $
a55 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
@Basic documentation for ROLEs.  The user-manag chapter still needs to
be rewritten, but at least the reference pages are reasonably sane.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.20 2005/01/04 00:39:53 tgl Exp $
d23 1
a23 1
DROP USER <replaceable class="PARAMETER">name</replaceable> [, ...]
@


1.20
log
@More minor updates and copy-editing.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.19 2003/11/29 19:51:38 pgsql Exp $
d14 1
a14 1
  <refpurpose>remove a database user account</refpurpose>
d23 1
a23 1
DROP USER <replaceable class="PARAMETER">name</replaceable>
d31 3
a33 3
   <command>DROP USER</command> removes the specified user.
   It does not remove tables, views, or other objects owned by the user. If the
   user owns any database, an error is raised.
d38 1
a38 28
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
    <term><replaceable class="PARAMETER">name</replaceable></term>
    <listitem>
     <para>
      The name of the user to remove.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
  <title>Notes</title>

  <para>
   <productname>PostgreSQL</productname> includes a program <xref
   linkend="APP-DROPUSER" endterm="APP-DROPUSER-title"> that has the
   same functionality as this command (in fact, it calls this command)
   but can be run from the command shell.
  </para>

  <para>
   To drop a user who owns a database, first drop the database or change
   its ownership.
  </para>
a40 22
   It is unwise to drop a user who either owns any database objects or has any
   granted permissions on objects.  Currently, this is only enforced for
   the case of owners of databases, but it is likely that future versions of
   <productname>PostgreSQL</productname> will check other cases.
  </para>
 </refsect1>

 <refsect1>
  <title>Examples</title>

  <para>
   To drop a user account:
<programlisting>
DROP USER jonathan;
</programlisting>
  </para>
 </refsect1>
 
 <refsect1>
  <title>Compatibility</title>
  
  <para>
d51 1
a51 2
   <member><xref linkend="sql-alteruser" endterm="sql-alteruser-title"></member>
   <member><xref linkend="sql-createuser" endterm="sql-createuser-title"></member>
@


1.19
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d2 1
a2 1
$PostgreSQL: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_user.sgml,v 1.18 2003/09/12 00:12:47 tgl Exp $
d66 7
@


1.18
log
@More cleanup of Diagnostics sections.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_user.sgml,v 1.17 2003/08/31 17:32:23 petere Exp $
@


1.17
log
@Add/edit index entries.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_user.sgml,v 1.16 2003/05/04 02:23:16 petere Exp $
a52 33
  <title>Diagnostics</title>

   <variablelist>
    <varlistentry>
     <term><computeroutput>DROP USER</computeroutput></term>
     <listitem>
      <para>
       Message returned if the user was successfully deleted.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><computeroutput>ERROR:  DROP USER: user "<replaceable class="parameter">name</replaceable>" does not exist</computeroutput></term>
     <listitem>
      <para>
       Message returned if the specified user does not exist.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><computeroutput>DROP USER: user "<replaceable class="parameter">name</replaceable>" owns database "<replaceable class="parameter">name</replaceable>", cannot be removed</computeroutput></term>
     <listitem>
      <para>
       You must drop the database first or change its ownership.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
 </refsect1>

 <refsect1>
d60 5
@


1.16
log
@Last round of reference page editing.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/drop_user.sgml,v 1.15 2002/02/27 21:14:54 petere Exp $
d16 4
@


1.16.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_user.sgml,v 1.17 2003/08/31 17:32:23 petere Exp $
a15 4

 <indexterm zone="sql-dropuser">
  <primary>DROP USER</primary>
 </indexterm>
@


1.15
log
@Some cleanups in CREATE/ALTER/DROP USER ref pages.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.14 2002/01/20 22:19:56 petere Exp $
d11 1
d27 1
a27 1
   <command>DROP USER</command> removes the specified user from the database.
d31 1
d33 2
a34 16
  <refsect2>
   <title>Parameters</title>

   <para>
    <variablelist>
     <varlistentry>
      <term><replaceable class="PARAMETER">name</replaceable></term>
      <listitem>
       <para>
	The name of an existing user.
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
   </para>
  </refsect2>
d36 10
a50 1
  <para>
d56 1
a56 1
       The message returned if the user is successfully deleted.
d65 1
a65 1
       This message occurs if the user name is not found.
a77 1

a78 1
  </para>
a84 3
   Use <xref linkend="SQL-CREATEUSER" endterm="SQL-CREATEUSER-title">
   to add new users, and <xref linkend="SQL-ALTERUSER"
   endterm="SQL-ALTERUSER-title"> to change a user's attributes.
d117 1
a118 2
   <member><xref linkend="sql-alteruser" endterm="sql-alteruser-title"></member>
   <member><xref linkend="app-dropuser"></member>
@


1.14
log
@Spell-check and markup police
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.13 2001/12/08 03:24:36 thomas Exp $
d8 1
a8 3
  <refentrytitle id="SQL-DROPUSER-TITLE">
   DROP USER
  </refentrytitle>
d12 2
a13 6
  <refname>
   DROP USER
  </refname>
  <refpurpose>
   remove a database user account
  </refpurpose>
d15 1
d17 1
a17 4
  <refsynopsisdivinfo>
   <date>1999-07-20</date>
  </refsynopsisdivinfo>
  <synopsis>
d19 15
a33 9
  </synopsis>
  
  <refsect2 id="R2-SQL-DROPUSER-1">
   <refsect2info>
    <date>1998-09-22</date>
   </refsect2info>
   <title>
    Inputs
   </title>
a34 1

a46 18
  
  <refsect2 id="R2-SQL-DROPUSER-2">
   <refsect2info>
    <date>1998-09-22</date>
   </refsect2info>
   <title>
    Outputs
   </title>
   <para>
    <variablelist>
     <varlistentry>
      <term><computeroutput>DROP USER</computeroutput></term>
      <listitem>
       <para>
	The message returned if the user is successfully deleted.
       </para>
      </listitem>
     </varlistentry>
d48 1
a48 10
     <varlistentry>
      <term><computeroutput>
ERROR:  DROP USER: user "<replaceable class="parameter">name</replaceable>" does not exist
       </computeroutput></term>
      <listitem>
       <para>
	This message occurs if the user name is not found.
       </para>
      </listitem>
     </varlistentry>
d50 2
a51 10
     <varlistentry>
      <term><computeroutput>
DROP USER: user "<replaceable class="parameter">name</replaceable>" owns database "<replaceable class="parameter">name</replaceable>", cannot be removed
       </computeroutput></term>
      <listitem>
       <para>
        You must drop the database first or change its ownership.
       </para>
      </listitem>
     </varlistentry>
d53 28
a80 4
    </variablelist>
   </para>
  </refsect2>
 </refsynopsisdiv>
d82 1
a82 11
 <refsect1 id="R1-SQL-DROPUSER-1">
  <refsect1info>
   <date>1998-09-22</date>
  </refsect1info>
  <title>
   Description
  </title>
  <para>
   <command>DROP USER</command> removes the specified user from the database.
   It does not remove tables, views, or other objects owned by the user. If the
   user owns any database you get an error.
d84 5
d92 4
a95 5
   endterm="SQL-ALTERUSER-title"> to change a user's properties.
   <productname>PostgreSQL</productname>
   comes with a script <xref linkend="APP-DROPUSER"
   endterm="APP-DROPUSER-title">
   which has the same functionality as this command (in fact, it calls this command)
d97 1
a97 1
  </para>  
d100 3
a102 4
 <refsect1 id="R1-SQL-DROPUSER-2">
  <title>
   Usage
  </title>
d111 2
a112 4
 <refsect1 id="R1-SQL-DROPUSER-3">
  <title>
   Compatibility
  </title>
d114 15
a128 11
  <refsect2 id="R2-SQL-DROPUSER-4">
   <refsect2info>
    <date>1998-09-22</date>
   </refsect2info>
   <title>
    SQL92
   </title>
   <para>
    There is no <command>DROP USER</command> in <acronym>SQL92</acronym>.
   </para>
  </refsect2>
d130 1
@


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_user.sgml,v 1.12 2001/09/03 12:57:50 petere Exp $
d75 1
a75 1
	This message occurs if the username is not found.
@


1.12
log
@Put some kind of grammatical uniformity in the <refpurpose> lines.
@
text
@d2 2
a3 2
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.11 2000/03/27 17:14:42 thomas Exp $
Postgres documentation
d112 1
a112 1
   <productname>Postgres</productname>
@


1.11
log
@Start updating for the v7.0 release.
Use "generic functions" for math and other routines.
Use SQL92 "type 'literal'" syntax rather than Postgres "'literal'::type".
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.10 2000/01/14 22:11:32 petere Exp $
d18 1
a18 1
   Removes a user
@


1.10
log
@* User management commands no longer user pg_exec_query_dest -> more robust

* Let unprivileged users change their own passwords.

* The password is now an Sconst in the parser, which better reflects its text datatype and also
forces users to quote them.

* If your password is NULL you won't be written to the password file, meaning you can't connect
until you have a password set up (if you use password authentication).

* When you drop a user that owns a database you get an error. The database is not gone.
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.9 1999/12/07 22:41:41 momjian Exp $
d112 1
a112 1
   <productname>PostgreSQL</productname>
@


1.9
log
@Okay, that should put us back in sync. These two patches (src & doc) are
against the sources from one hour ago and contain all the portable and
up
to date stuff.

A few other CVS "householding" things you might want to take care of:

* Remove the src/bin/cleardbdir directory

* Remove the file src/bin/psql/sql_help.h from the repository, as it is
a derived file and is build by the release_prep.

Peter Eisentraut
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.8 1999/12/04 04:53:15 momjian Exp $
d18 1
a18 1
   Removes an user account information
d61 9
d71 1
a71 1
DROP
d75 1
a75 1
	The message returned if the user is successfully deleted.
d79 1
d82 1
a82 1
ERROR: removeUser: user "<replaceable class="parameter">name</replaceable>" does not exist.
d86 1
a86 1
	This message occurs if the username is not found.
d90 1
d104 3
a106 5
   <command>DROP USER</command> removes the specified
   user from the database,
   along with any databases owned by the user. It
   does not remove tables, views, or triggers owned by the
   named user in databases not owned by the user.
d108 10
a117 18

  <refsect2 id="R2-SQL-DROPUSER-3">
   <refsect2info>
    <date>1998-09-22</date>
   </refsect2info>
   <title>
    Notes
   </title>
   <para>
    <command>DROP USER</command> is a <productname>Postgres</productname>
    language extension.
   </para>
   <para>
    Refer to <command>CREATE USER</command> and
    <command>ALTER USER</command> for information on
    how to create or modify user accounts.
   </para>
  </refsect2>
d126 3
a128 3
   <programlisting>
DROP USER Jonathan;
   </programlisting>
@


1.8
log
@New scripts for create/drop user/db from Peter Eisentraut
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.7 1999/07/22 15:09:11 thomas Exp $
d97 1
a97 3
   named user in databases not owned by the user. This statement
   can be used in place of the <application>dropuser</application>
   script, regardless of how the user was created.
@


1.7
log
@Complete merge of all old man page information.
ecpg reference page still needs formatting.
@
text
@d2 1
a2 1
$Header$
d98 1
a98 1
   can be used in place of the <application>destroyuser</application>
@


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-09-22</date>
a136 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-DROPUSER">
 <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-09-22</DATE>
  </REFSYNOPSISDIVINFO>
  <SYNOPSIS>
DROP USER <REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE>
  </SYNOPSIS>
d24 5
a28 5
  <REFSECT2 ID="R2-SQL-DROPUSER-1">
   <REFSECT2INFO>
    <DATE>1998-09-22</DATE>
   </REFSECT2INFO>
   <TITLE>
d30 15
a44 16
   </TITLE>
   <PARA>
   </PARA>
       <VARIABLELIST>
	<VARLISTENTRY>
	 <TERM>
	  <REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE>
	 </TERM>
	 <LISTITEM>
	  <PARA>
	   The name of an existing user.
	  </PARA>
	 </LISTITEM>
	</VARLISTENTRY>
       </variablelist>
  </REFSECT2>
d46 5
a50 5
  <REFSECT2 ID="R2-SQL-DROPUSER-2">
   <REFSECT2INFO>
    <DATE>1998-09-22</DATE>
   </REFSECT2INFO>
   <TITLE>
d52 24
a75 24
   </TITLE>
   <PARA>
       <VARIABLELIST>
	<VARLISTENTRY>
	 <TERM>
	  <ReturnValue>DROP</ReturnValue>
	 </TERM>
	 <LISTITEM>
	  <PARA>
	   The message returned if the user is successfully deleted.
	  </PARA>
	 </LISTITEM>
	</VARLISTENTRY>
	<VARLISTENTRY>
	 <TERM>
	  <ReturnValue>ERROR: removeUser: user "<replaceable class="parameter">username</replaceable>" does not exist.</ReturnValue>
	 </TERM>
	 <LISTITEM>
	  <PARA>
	   This message occurs if the username is not found.
       </PARA>
      </LISTITEM>
     </VARLISTENTRY>
    </VARIABLELIST>
d77 8
a84 8
  </REFSECT2>
 </REFSYNOPSISDIV>
 
 <REFSECT1 ID="R1-SQL-DROPUSER-1">
  <REFSECT1INFO>
   <DATE>1998-09-22</DATE>
  </REFSECT1INFO>
  <TITLE>
d86 2
a87 2
  </TITLE>
  <PARA>
d95 7
a101 7
  </PARA>
  
  <REFSECT2 ID="R2-SQL-DROPUSER-3">
   <REFSECT2INFO>
    <DATE>1998-09-22</DATE>
   </REFSECT2INFO>
   <TITLE>
d103 2
a104 2
   </TITLE>
   <PARA>
d107 2
a108 2
   </PARA>
   <PARA>
d112 2
a113 2
   </PARA>
  </REFSECT2>
d115 3
a117 3
  
 <REFSECT1 ID="R1-SQL-DROPUSER-2">
  <TITLE>
d119 2
a120 2
  </TITLE>
  <PARA>
d122 1
a122 2
  </PARA>
  <ProgramListing>
d124 3
a126 2
  </ProgramListing>
 </REFSECT1>
d128 2
a129 2
 <REFSECT1 ID="R1-SQL-DROPUSER-3">
  <TITLE>
d131 3
a133 3
  </TITLE>
  <PARA>
  </PARA>
d135 5
a139 5
  <REFSECT2 ID="R2-SQL-DROPUSER-4">
   <REFSECT2INFO>
    <DATE>1998-09-22</DATE>
   </REFSECT2INFO>
   <TITLE>
d141 2
a142 2
   </TITLE>
   <PARA>
d144 1
a144 1
   </PARA>
d147 1
a147 2
</REFENTRY>

d152 1
a152 1
sgml-omittag:t
@


1.4
log
@Minor cleanup in markup, especially in the Output section.
@
text
@d15 1
a15 1
  
d73 5
a77 4
	  </PARA>
	 </LISTITEM>
	</VARLISTENTRY>
      </VARIABLELIST>
d115 1
@


1.3
log
@Editing and markup cleanup.
@
text
@a54 8
   </PARA>
   <VARIABLELIST>
    <VARLISTENTRY>
     <TERM>
<replaceable>status</replaceable>
     </TERM>
     <LISTITEM>
      <PARA>
d76 1
a76 4
       </variablelist>
     </LISTITEM>
    </VARLISTENTRY>
   </VARIABLELIST>
@


1.2
log
@Markup and editing adjustments...
@
text
@d18 1
a18 1
   <DATE>1998-04-15</DATE>
d21 1
a21 1
   DROP USER <REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE>
d26 1
a26 1
    <DATE>1998-04-15</DATE>
a32 6
   <VARIABLELIST>
    <VARLISTENTRY>
     <TERM>
     </TERM>
     <LISTITEM>
      <PARA>
d36 1
a36 1
	  <ReturnValue><REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE></ReturnValue>
a44 3
     </LISTITEM>
    </VARLISTENTRY>
   </VARIABLELIST>
d49 1
a49 1
    <DATE>1998-04-15</DATE>
d59 1
d93 1
a93 1
   <DATE>1998-04-15</DATE>
d99 1
a99 1
   The <command>DROP USER</command> statement removes the named
d104 1
a104 1
   can be used in the place of the <command>destroyuser</command>
d110 1
a110 1
    <DATE>1998-04-15</DATE>
d116 1
a116 1
    The <command>DROP USER</command> statement is a PostgreSQL
d120 2
a121 2
    Refer to the <command>CREATE USER</command> and
    <command>ALTER USER</command> statements for information on
d134 1
a134 1
   DROP USER Jonathan;
d147 1
a147 1
    <DATE>1998-04-15</DATE>
d153 1
a153 1
    There is no <command>DROP USER</command> statement in SQL92.
@


1.1
log
@Add new reference pages. This completes the first cut at a full set
 for SQL commands.
@
text
@d161 1
a161 1
    There is no <command>DROP USER</command> statement on SQL92.
@
