2000-01-14 23:11:38 +01:00
|
|
|
<!--
|
2005-01-04 01:39:53 +01:00
|
|
|
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_group.sgml,v 1.9 2005/01/04 00:39:53 tgl Exp $
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
2000-01-14 23:11:38 +01:00
|
|
|
-->
|
|
|
|
|
|
|
|
<refentry id="SQL-DROPGROUP">
|
|
|
|
<refmeta>
|
2002-04-21 21:02:39 +02:00
|
|
|
<refentrytitle id="SQL-DROPGROUP-TITLE">DROP GROUP</refentrytitle>
|
2000-01-14 23:11:38 +01:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
<refnamediv>
|
2003-05-04 04:23:16 +02:00
|
|
|
<refname>DROP GROUP</refname>
|
|
|
|
<refpurpose>remove a user group</refpurpose>
|
2000-01-14 23:11:38 +01:00
|
|
|
</refnamediv>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
2003-08-31 19:32:24 +02:00
|
|
|
<indexterm zone="sql-dropgroup">
|
|
|
|
<primary>DROP GROUP</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
<refsynopsisdiv>
|
2003-05-04 04:23:16 +02:00
|
|
|
<synopsis>
|
2000-01-14 23:11:38 +01:00
|
|
|
DROP GROUP <replaceable class="PARAMETER">name</replaceable>
|
2003-05-04 04:23:16 +02:00
|
|
|
</synopsis>
|
2000-01-14 23:11:38 +01:00
|
|
|
</refsynopsisdiv>
|
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
<para>
|
2003-05-04 04:23:16 +02:00
|
|
|
<command>DROP GROUP</command> removes the specified group. The
|
|
|
|
users in the group are not deleted.
|
2000-01-14 23:11:38 +01:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Parameters</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable class="PARAMETER">name</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of an existing group.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2005-01-04 01:39:53 +01:00
|
|
|
<refsect1>
|
|
|
|
<title>Notes</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
It is unwise to drop a group that has any
|
|
|
|
granted permissions on objects. Currently, this is not enforced,
|
|
|
|
but it is likely that future versions of
|
|
|
|
<productname>PostgreSQL</productname> will check for the error.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Examples</title>
|
2000-01-14 23:11:38 +01:00
|
|
|
|
|
|
|
<para>
|
|
|
|
To drop a group:
|
|
|
|
<programlisting>
|
|
|
|
DROP GROUP staff;
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Compatibility</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
There is no <command>DROP GROUP</command> statement in the SQL standard.
|
|
|
|
</para>
|
2000-01-14 23:11:38 +01:00
|
|
|
</refsect1>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See Also</title>
|
|
|
|
|
|
|
|
<simplelist type="inline">
|
|
|
|
<member><xref linkend="sql-altergroup" endterm="sql-altergroup-title"></member>
|
|
|
|
<member><xref linkend="sql-creategroup" endterm="sql-creategroup-title"></member>
|
|
|
|
</simplelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- 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:
|
|
|
|
-->
|