2 $PostgreSQL: pgsql/doc/src/sgml/ref/create_group.sgml,v 1.14 2003/11/29 19:51:38 pgsql Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-CREATEGROUP">
8 <refentrytitle id="sql-creategroup-title">CREATE GROUP</refentrytitle>
9 <refmiscinfo>SQL - Language Statements</refmiscinfo>
13 <refname>CREATE GROUP</refname>
14 <refpurpose>define a new user group</refpurpose>
17 <indexterm zone="sql-creategroup">
18 <primary>CREATE GROUP</primary>
23 CREATE GROUP <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ]
25 where <replaceable class="PARAMETER">option</replaceable> can be:
27 SYSID <replaceable class="PARAMETER">gid</replaceable>
28 | USER <replaceable class="PARAMETER">username</replaceable> [, ...]
33 <title>Description</title>
36 <command>CREATE GROUP</command> will create a new group in the
37 database cluster. You must be a database
38 superuser to use this command.
42 Use <xref linkend="SQL-ALTERGROUP" endterm="SQL-ALTERGROUP-title">
43 to change a group's membership, and <xref linkend="SQL-DROPGROUP"
44 endterm="SQL-DROPGROUP-title"> to remove a group.
49 <title>Parameters</title>
53 <term><replaceable class="parameter">name</replaceable></term>
56 The name of the group.
62 <term><replaceable class="parameter">gid</replaceable></term>
65 The <literal>SYSID</literal> clause can be used to choose
66 the <productname>PostgreSQL</productname> group ID of the new
67 group. It is not necessary to do so, however.
70 If this is not specified, the highest assigned group ID plus one,
71 starting at 1, will be used as default.
77 <term><replaceable class="parameter">username</replaceable></term>
80 A list of users to include in the group. The users must already exist.
89 <title>Examples</title>
92 Create an empty group:
99 Create a group with members:
101 CREATE GROUP marketing WITH USER jonathan, david;
107 <title>Compatibility</title>
110 There is no <command>CREATE GROUP</command> statement in the SQL
111 standard. Roles are similar in concept to groups.
116 <!-- Keep this comment at the end of the file
121 sgml-minimize-attributes:nil
122 sgml-always-quote-attributes:t
125 sgml-parent-document:nil
126 sgml-default-dtd-file:"../reference.ced"
127 sgml-exposed-tags:nil
128 sgml-local-catalogs:"/usr/lib/sgml/catalog"
129 sgml-local-ecat-files:nil