diff options
Diffstat (limited to 'doc/src/sgml/ref/drop_user.sgml')
| -rw-r--r-- | doc/src/sgml/ref/drop_user.sgml | 230 |
1 files changed, 114 insertions, 116 deletions
diff --git a/doc/src/sgml/ref/drop_user.sgml b/doc/src/sgml/ref/drop_user.sgml index fa29c9f5e8..c9a32f4f82 100644 --- a/doc/src/sgml/ref/drop_user.sgml +++ b/doc/src/sgml/ref/drop_user.sgml @@ -1,91 +1,90 @@ -<REFENTRY ID="SQL-DROPUSER"> - <REFMETA> - <REFENTRYTITLE> +<refentry id="SQL-DROPUSER"> + <refmeta> + <refentrytitle> DROP USER - </REFENTRYTITLE> - <REFMISCINFO>SQL - Language Statements</REFMISCINFO> - </REFMETA> - <REFNAMEDIV> - <REFNAME> + </refentrytitle> + <refmiscinfo>SQL - Language Statements</refmiscinfo> + </refmeta> + <refnamediv> + <refname> DROP USER - </REFNAME> - <REFPURPOSE> + </refname> + <refpurpose> Removes an user account information - </REFPURPOSE> + </refpurpose> </refnamediv> - <REFSYNOPSISDIV> - <REFSYNOPSISDIVINFO> - <DATE>1998-09-22</DATE> - </REFSYNOPSISDIVINFO> - <SYNOPSIS> -DROP USER <REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE> - </SYNOPSIS> + <refsynopsisdiv> + <refsynopsisdivinfo> + <date>1998-09-22</date> + </refsynopsisdivinfo> + <synopsis> +DROP USER <replaceable class="PARAMETER">name</replaceable> + </synopsis> - <REFSECT2 ID="R2-SQL-DROPUSER-1"> - <REFSECT2INFO> - <DATE>1998-09-22</DATE> - </REFSECT2INFO> - <TITLE> + <refsect2 id="R2-SQL-DROPUSER-1"> + <refsect2info> + <date>1998-09-22</date> + </refsect2info> + <title> Inputs - </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> + </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> - <REFSECT2 ID="R2-SQL-DROPUSER-2"> - <REFSECT2INFO> - <DATE>1998-09-22</DATE> - </REFSECT2INFO> - <TITLE> + <refsect2 id="R2-SQL-DROPUSER-2"> + <refsect2info> + <date>1998-09-22</date> + </refsect2info> + <title> Outputs - </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> + </title> + <para> + <variablelist> + <varlistentry> + <term><computeroutput> +DROP + </computeroutput></term> + <listitem> + <para> + The message returned if the user is successfully deleted. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><computeroutput> +ERROR: removeUser: user "<replaceable class="parameter">name</replaceable>" does not exist. + </computeroutput></term> + <listitem> + <para> + This message occurs if the username is not found. + </para> + </listitem> + </varlistentry> + </variablelist> </para> - </REFSECT2> - </REFSYNOPSISDIV> - - <REFSECT1 ID="R1-SQL-DROPUSER-1"> - <REFSECT1INFO> - <DATE>1998-09-22</DATE> - </REFSECT1INFO> - <TITLE> + </refsect2> + </refsynopsisdiv> + + <refsect1 id="R1-SQL-DROPUSER-1"> + <refsect1info> + <date>1998-09-22</date> + </refsect1info> + <title> Description - </TITLE> - <PARA> + </title> + <para> <command>DROP USER</command> removes the specified user from the database, along with any databases owned by the user. It @@ -93,65 +92,64 @@ DROP USER <REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE> named user in databases not owned by the user. This statement can be used in place of the <application>destroyuser</application> script, regardless of how the user was created. - </PARA> - - <REFSECT2 ID="R2-SQL-DROPUSER-3"> - <REFSECT2INFO> - <DATE>1998-09-22</DATE> - </REFSECT2INFO> - <TITLE> + </para> + + <refsect2 id="R2-SQL-DROPUSER-3"> + <refsect2info> + <date>1998-09-22</date> + </refsect2info> + <title> Notes - </TITLE> - <PARA> + </title> + <para> <command>DROP USER</command> is a <productname>Postgres</productname> language extension. - </PARA> - <PARA> + </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> + </para> + </refsect2> </refsect1> - - <REFSECT1 ID="R1-SQL-DROPUSER-2"> - <TITLE> + + <refsect1 id="R1-SQL-DROPUSER-2"> + <title> Usage - </TITLE> - <PARA> + </title> + <para> To drop a user account: - </PARA> - <ProgramListing> + <programlisting> DROP USER Jonathan; - </ProgramListing> - </REFSECT1> + </programlisting> + </para> + </refsect1> - <REFSECT1 ID="R1-SQL-DROPUSER-3"> - <TITLE> + <refsect1 id="R1-SQL-DROPUSER-3"> + <title> Compatibility - </TITLE> - <PARA> - </PARA> + </title> + <para> + </para> - <REFSECT2 ID="R2-SQL-DROPUSER-4"> - <REFSECT2INFO> - <DATE>1998-09-22</DATE> - </REFSECT2INFO> - <TITLE> + <refsect2 id="R2-SQL-DROPUSER-4"> + <refsect2info> + <date>1998-09-22</date> + </refsect2info> + <title> SQL92 - </TITLE> - <PARA> + </title> + <para> There is no <command>DROP USER</command> in <acronym>SQL92</acronym>. - </PARA> + </para> </refsect2> </refsect1> -</REFENTRY> - +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml -sgml-omittag:t +sgml-omittag:nil sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t |
