2 doc/src/sgml/ref/create_group.sgml
3 PostgreSQL documentation
6 <refentry id=
"sql-creategroup">
7 <indexterm zone=
"sql-creategroup">
8 <primary>CREATE GROUP
</primary>
12 <refentrytitle>CREATE GROUP
</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
18 <refname>CREATE GROUP
</refname>
19 <refpurpose>define a new database role
</refpurpose>
24 CREATE GROUP
<replaceable class=
"parameter">name
</replaceable> [ [ WITH ]
<replaceable class=
"parameter">option
</replaceable> [ ... ] ]
26 <phrase>where
<replaceable class=
"parameter">option
</replaceable> can be:
</phrase>
28 SUPERUSER | NOSUPERUSER
29 | CREATEDB | NOCREATEDB
30 | CREATEROLE | NOCREATEROLE
33 | REPLICATION | NOREPLICATION
34 | BYPASSRLS | NOBYPASSRLS
35 | CONNECTION LIMIT
<replaceable class=
"parameter">connlimit
</replaceable>
36 | [ ENCRYPTED ] PASSWORD '
<replaceable class=
"parameter">password
</replaceable>' | PASSWORD NULL
37 | VALID UNTIL '
<replaceable class=
"parameter">timestamp
</replaceable>'
38 | IN ROLE
<replaceable class=
"parameter">role_name
</replaceable> [, ...]
39 | IN GROUP
<replaceable class=
"parameter">role_name
</replaceable> [, ...]
40 | ROLE
<replaceable class=
"parameter">role_name
</replaceable> [, ...]
41 | ADMIN
<replaceable class=
"parameter">role_name
</replaceable> [, ...]
42 | USER
<replaceable class=
"parameter">role_name
</replaceable> [, ...]
43 | SYSID
<replaceable class=
"parameter">uid
</replaceable>
48 <title>Description
</title>
51 <command>CREATE GROUP
</command> is now an alias for
52 <xref linkend=
"sql-createrole"/>.
57 <title>Compatibility
</title>
60 There is no
<command>CREATE GROUP
</command> statement in the SQL
66 <title>See Also
</title>
68 <simplelist type=
"inline">
69 <member><xref linkend=
"sql-createrole"/></member>