1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2005-07-31 19:19:22 +02:00
|
|
|
$PostgreSQL: pgsql/doc/src/sgml/ref/create_user.sgml,v 1.38 2005/07/31 17:19:17 tgl Exp $
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refentry id="SQL-CREATEUSER">
|
|
|
|
<refmeta>
|
2002-02-27 22:14:54 +01:00
|
|
|
<refentrytitle id="sql-createuser-title">CREATE USER</refentrytitle>
|
1999-06-14 09:37:05 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2002-02-27 22:14:54 +01:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refnamediv>
|
2002-02-27 22:14:54 +01:00
|
|
|
<refname>CREATE USER</refname>
|
2005-07-27 01:24:02 +02:00
|
|
|
<refpurpose>define a new database role</refpurpose>
|
1998-12-29 03:24:47 +01:00
|
|
|
</refnamediv>
|
2002-02-27 22:14:54 +01:00
|
|
|
|
2003-08-31 19:32:24 +02:00
|
|
|
<indexterm zone="sql-createuser">
|
|
|
|
<primary>CREATE USER</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsynopsisdiv>
|
2002-02-27 22:14:54 +01:00
|
|
|
<synopsis>
|
2003-09-22 02:16:58 +02:00
|
|
|
CREATE USER <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ]
|
2001-07-11 00:09:29 +02:00
|
|
|
|
|
|
|
where <replaceable class="PARAMETER">option</replaceable> can be:
|
|
|
|
|
2005-07-27 01:24:02 +02:00
|
|
|
SUPERUSER | NOSUPERUSER
|
2002-02-27 22:14:54 +01:00
|
|
|
| CREATEDB | NOCREATEDB
|
2005-07-27 01:24:02 +02:00
|
|
|
| CREATEROLE | NOCREATEROLE
|
2002-02-27 22:14:54 +01:00
|
|
|
| CREATEUSER | NOCREATEUSER
|
2005-07-27 01:24:02 +02:00
|
|
|
| INHERIT | NOINHERIT
|
|
|
|
| LOGIN | NOLOGIN
|
2005-07-31 19:19:22 +02:00
|
|
|
| CONNECTION LIMIT <replaceable class="PARAMETER">connlimit</replaceable>
|
2005-01-06 01:11:14 +01:00
|
|
|
| [ ENCRYPTED | UNENCRYPTED ] PASSWORD '<replaceable class="PARAMETER">password</replaceable>'
|
2005-07-27 01:24:02 +02:00
|
|
|
| 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>
|
2002-02-27 22:14:54 +01:00
|
|
|
</synopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>
|
2005-07-27 01:24:02 +02:00
|
|
|
<command>CREATE USER</command> is now an alias for
|
|
|
|
<xref linkend="sql-createrole" endterm="sql-createrole-title">,
|
|
|
|
which see for more information.
|
|
|
|
The only difference is that when the command is spelled
|
|
|
|
<command>CREATE USER</command>, <literal>LOGIN</> is assumed
|
|
|
|
by default, whereas <literal>NOLOGIN</> is assumed when
|
|
|
|
the command is spelled
|
|
|
|
<command>CREATE ROLE</command>.
|
1998-09-01 17:53:09 +02:00
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect1>
|
1998-09-01 17:53:09 +02:00
|
|
|
|
2002-02-27 22:14:54 +01:00
|
|
|
<refsect1>
|
|
|
|
<title>Compatibility</title>
|
1998-09-01 17:53:09 +02:00
|
|
|
|
2002-02-27 22:14:54 +01:00
|
|
|
<para>
|
|
|
|
The <command>CREATE USER</command> statement is a
|
|
|
|
<productname>PostgreSQL</productname> extension. The SQL standard
|
|
|
|
leaves the definition of users to the implementation.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
2002-02-27 22:14:54 +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>
|
2002-02-27 22:14:54 +01:00
|
|
|
</simplelist>
|
1998-12-29 03:24:47 +01:00
|
|
|
</refsect1>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refentry>
|
1998-09-01 17:53:09 +02:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
1999-06-14 09:37:05 +02:00
|
|
|
sgml-omittag:nil
|
1998-09-01 17:53:09 +02:00
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
1998-09-07 17:58:31 +02:00
|
|
|
-->
|