2000-01-14 23:11:38 +01:00
|
|
|
<!--
|
2006-09-16 02:30:20 +02:00
|
|
|
$PostgreSQL: pgsql/doc/src/sgml/ref/create_group.sgml,v 1.17 2006/09/16 00:30:17 momjian Exp $
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
2000-01-14 23:11:38 +01:00
|
|
|
-->
|
|
|
|
|
|
|
|
<refentry id="SQL-CREATEGROUP">
|
|
|
|
<refmeta>
|
2002-04-21 21:02:39 +02:00
|
|
|
<refentrytitle id="sql-creategroup-title">CREATE GROUP</refentrytitle>
|
2000-01-14 23:11:38 +01:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2003-04-22 12:08:08 +02:00
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
<refnamediv>
|
2003-04-22 12:08:08 +02:00
|
|
|
<refname>CREATE GROUP</refname>
|
2005-07-27 01:24:02 +02:00
|
|
|
<refpurpose>define a new database role</refpurpose>
|
2000-01-14 23:11:38 +01:00
|
|
|
</refnamediv>
|
2003-04-22 12:08:08 +02:00
|
|
|
|
2003-08-31 19:32:24 +02:00
|
|
|
<indexterm zone="sql-creategroup">
|
|
|
|
<primary>CREATE GROUP</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
<refsynopsisdiv>
|
2003-04-22 12:08:08 +02:00
|
|
|
<synopsis>
|
2001-07-12 20:03:00 +02:00
|
|
|
CREATE GROUP <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ]
|
|
|
|
|
|
|
|
where <replaceable class="PARAMETER">option</replaceable> can be:
|
2005-07-27 01:24:02 +02:00
|
|
|
|
|
|
|
SUPERUSER | NOSUPERUSER
|
|
|
|
| CREATEDB | NOCREATEDB
|
|
|
|
| CREATEROLE | NOCREATEROLE
|
|
|
|
| CREATEUSER | NOCREATEUSER
|
|
|
|
| INHERIT | NOINHERIT
|
|
|
|
| LOGIN | NOLOGIN
|
|
|
|
| [ ENCRYPTED | UNENCRYPTED ] PASSWORD '<replaceable class="PARAMETER">password</replaceable>'
|
|
|
|
| VALID UNTIL '<replaceable class="PARAMETER">timestamp</replaceable>'
|
|
|
|
| IN ROLE <replaceable class="PARAMETER">rolename</replaceable> [, ...]
|
|
|
|
| IN GROUP <replaceable class="PARAMETER">rolename</replaceable> [, ...]
|
|
|
|
| ROLE <replaceable class="PARAMETER">rolename</replaceable> [, ...]
|
|
|
|
| ADMIN <replaceable class="PARAMETER">rolename</replaceable> [, ...]
|
|
|
|
| USER <replaceable class="PARAMETER">rolename</replaceable> [, ...]
|
|
|
|
| SYSID <replaceable class="PARAMETER">uid</replaceable>
|
2003-04-22 12:08:08 +02:00
|
|
|
</synopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>
|
2005-07-27 01:24:02 +02:00
|
|
|
<command>CREATE GROUP</command> is now an alias for
|
|
|
|
<xref linkend="sql-createrole" endterm="sql-createrole-title">,
|
|
|
|
which see for more information.
|
2003-04-22 12:08:08 +02:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2000-01-14 23:11:38 +01:00
|
|
|
|
2003-04-22 12:08:08 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Compatibility</title>
|
2000-01-14 23:11:38 +01:00
|
|
|
|
2003-04-22 12:08:08 +02:00
|
|
|
<para>
|
|
|
|
There is no <command>CREATE GROUP</command> statement in the SQL
|
2005-07-27 01:24:02 +02:00
|
|
|
standard.
|
2003-04-22 12:08:08 +02:00
|
|
|
</para>
|
2000-01-14 23:11:38 +01:00
|
|
|
</refsect1>
|
2005-01-04 01:39:53 +01:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See Also</title>
|
|
|
|
|
|
|
|
<simplelist type="inline">
|
2005-07-27 01:24:02 +02:00
|
|
|
<member><xref linkend="sql-createrole" endterm="sql-createrole-title"></member>
|
2005-01-04 01:39:53 +01:00
|
|
|
</simplelist>
|
|
|
|
</refsect1>
|
2000-01-14 23:11:38 +01:00
|
|
|
</refentry>
|