2 $PostgreSQL: pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.15 2005/01/04 00:39:53 tgl Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-ALTERGROUP">
8 <refentrytitle id="SQL-ALTERGROUP-title">ALTER GROUP</refentrytitle>
9 <refmiscinfo>SQL - Language Statements</refmiscinfo>
13 <refname>ALTER GROUP</refname>
14 <refpurpose>change a user group</refpurpose>
17 <indexterm zone="sql-altergroup">
18 <primary>ALTER GROUP</primary>
23 ALTER GROUP <replaceable class="PARAMETER">groupname</replaceable> ADD USER <replaceable class="PARAMETER">username</replaceable> [, ... ]
24 ALTER GROUP <replaceable class="PARAMETER">groupname</replaceable> DROP USER <replaceable class="PARAMETER">username</replaceable> [, ... ]
26 ALTER GROUP <replaceable class="PARAMETER">groupname</replaceable> RENAME TO <replaceable>newname</replaceable>
31 <title>Description</title>
34 <command>ALTER GROUP</command> changes the attributes of a user group.
38 The first two variants add users to a group or remove them from a group.
39 Only database superusers can use this command.
43 The third variant changes the name of the group. Only a database
44 superuser can rename groups.
49 <title>Parameters</title>
53 <term><replaceable class="PARAMETER">groupname</replaceable></term>
56 The name of the group to modify.
62 <term><replaceable class="PARAMETER">username</replaceable></term>
65 Users that are to be added to or removed from the group. The users
66 must already exist; <command>ALTER GROUP</> does not create or
73 <term><replaceable>newname</replaceable></term>
76 The new name of the group.
84 <title>Examples</title>
89 ALTER GROUP staff ADD USER karl, john;
92 Remove a user from a group:
95 ALTER GROUP workers DROP USER beth;
102 <title>Compatibility</title>
105 There is no <command>ALTER GROUP</command> statement in the SQL
106 standard. The concept of roles is similar.
111 <title>See Also</title>
113 <simplelist type="inline">
114 <member><xref linkend="sql-creategroup" endterm="sql-creategroup-title"></member>
115 <member><xref linkend="sql-dropgroup" endterm="sql-dropgroup-title"></member>
121 <!-- Keep this comment at the end of the file
126 sgml-minimize-attributes:nil
127 sgml-always-quote-attributes:t
130 sgml-parent-document:nil
131 sgml-default-dtd-file:"../reference.ced"
132 sgml-exposed-tags:nil
133 sgml-local-catalogs:"/usr/lib/sgml/catalog"
134 sgml-local-ecat-files:nil