2 $PostgreSQL: pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.14 2003/11/29 19:51:38 pgsql 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> is used to change a user group. The
35 first two variants add or remove users from a group. Only database
36 superusers can use this command. Adding a user to a group does not
37 create the user. Similarly, removing a user from a group does not
42 The third variant changes the name of the group. Only a database
43 superuser can rename groups.
48 <title>Parameters</title>
52 <term><replaceable class="PARAMETER">groupname</replaceable></term>
55 The name of the group to modify.
61 <term><replaceable class="PARAMETER">username</replaceable></term>
64 Users which are to be added or removed from the group. The users
71 <term><replaceable>newname</replaceable></term>
74 The new name of the group.
82 <title>Examples</title>
87 ALTER GROUP staff ADD USER karl, john;
90 Remove a user from a group:
93 ALTER GROUP workers DROP USER beth;
100 <title>Compatibility</title>
103 There is no <command>ALTER GROUP</command> statement in the SQL
104 standard. The concept of roles is similar.
109 <title>See Also</title>
111 <simplelist type="inline">
112 <member><xref linkend="sql-creategroup" endterm="sql-creategroup-title"></member>
113 <member><xref linkend="sql-dropgroup" endterm="sql-dropgroup-title"></member>
119 <!-- Keep this comment at the end of the file
124 sgml-minimize-attributes:nil
125 sgml-always-quote-attributes:t
128 sgml-parent-document:nil
129 sgml-default-dtd-file:"../reference.ced"
130 sgml-exposed-tags:nil
131 sgml-local-catalogs:"/usr/lib/sgml/catalog"
132 sgml-local-ecat-files:nil