Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
840b7f52
Commit
840b7f52
authored
Aug 14, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update administrator's guide chapters for ROLEs patch.
parent
bf86bacb
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
339 additions
and
172 deletions
+339
-172
doc/src/sgml/client-auth.sgml
doc/src/sgml/client-auth.sgml
+82
-61
doc/src/sgml/manage-ag.sgml
doc/src/sgml/manage-ag.sgml
+8
-8
doc/src/sgml/ref/create_role.sgml
doc/src/sgml/ref/create_role.sgml
+17
-5
doc/src/sgml/user-manag.sgml
doc/src/sgml/user-manag.sgml
+232
-98
No files found.
doc/src/sgml/client-auth.sgml
View file @
840b7f52
This diff is collapsed.
Click to expand it.
doc/src/sgml/manage-ag.sgml
View file @
840b7f52
<!--
$PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.4
2 2005/06/21 04:02:30
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.4
3 2005/08/14 23:35:37
tgl Exp $
-->
<chapter id="managing-databases">
...
...
@@ -94,7 +94,7 @@ SELECT datname FROM pg_database;
CREATE DATABASE <replaceable>name</>;
</synopsis>
where <replaceable>name</> follows the usual rules for
<acronym>SQL</acronym> identifiers. The current
user
automatically
<acronym>SQL</acronym> identifiers. The current
role
automatically
becomes the owner of the new database. It is the privilege of the
owner of a database to remove it later on (which also removes all
the objects in it, even if they have a different owner).
...
...
@@ -102,7 +102,7 @@ CREATE DATABASE <replaceable>name</>;
<para>
The creation of databases is a restricted operation. See <xref
linkend="
user
-attributes"> for how to grant permission.
linkend="
role
-attributes"> for how to grant permission.
</para>
<para>
...
...
@@ -158,18 +158,18 @@ createdb <replaceable class="parameter">dbname</replaceable>
<para>
Sometimes you want to create a database for someone else. That
user
should become the owner of the new database, so he can
role
should become the owner of the new database, so he can
configure and manage it himself. To achieve that, use one of the
following commands:
<programlisting>
CREATE DATABASE <replaceable>dbname</> OWNER <replaceable>
user
name</>;
CREATE DATABASE <replaceable>dbname</> OWNER <replaceable>
role
name</>;
</programlisting>
from the SQL environment, or
<programlisting>
createdb -O <replaceable>
user
name</> <replaceable>dbname</>
createdb -O <replaceable>
role
name</> <replaceable>dbname</>
</programlisting>
You must be a superuser to be allowed to create a database for
someone else.
someone else
(that is, for a role you are not a member of)
.
</para>
</sect1>
...
...
@@ -327,7 +327,7 @@ ALTER DATABASE mydb SET geqo TO off;
<synopsis>
DROP DATABASE <replaceable>name</>;
</synopsis>
Only the owner of the database
(i.e., the user that created it)
, or
Only the owner of the database, or
a superuser, can drop a database. Dropping a database removes all objects
that were
contained within the database. The destruction of a database cannot
...
...
doc/src/sgml/ref/create_role.sgml
View file @
840b7f52
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_role.sgml,v 1.
2 2005/07/31 17:19:17
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_role.sgml,v 1.
3 2005/08/14 23:35:38
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -141,7 +141,7 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
<para>
These clauses determine whether a role <quote>inherits</> the
privileges of roles it is a member of.
A role with
<literal>INHERIT</literal> privileg
e can automatically
A role with
the <literal>INHERIT</literal> attribut
e can automatically
use whatever database privileges have been granted to all roles
it is directly or indirectly a member of.
Without <literal>INHERIT</literal>, membership in another role
...
...
@@ -162,7 +162,7 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
These clauses determine whether a role is allowed to log in;
that is, whether the role can be given as the initial session
authorization name during client connection. A role having
<literal>LOGIN</literal> privileg
e can be thought of as a user.
the <literal>LOGIN</literal> attribut
e can be thought of as a user.
Roles without this attribute are useful for managing database
privileges, but are not users in the usual sense of the word.
If not specified,
...
...
@@ -188,7 +188,7 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
<listitem>
<para>
Sets the role's password. (A password is only of use for
roles having
<literal>LOGIN</literal> privileg
e, but you can
roles having
the <literal>LOGIN</literal> attribut
e, but you can
nonetheless define one for roles without it.)
If you do not plan to use password
authentication you can omit this option.
...
...
@@ -325,7 +325,19 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
</para>
<para>
<literal>INHERIT</> privilege is the default for reasons of backwards
The <literal>INHERIT</> attribute governs inheritance of grantable
privileges (that is, access privileges for database objects and role
memberships). It does not apply to the special role attributes set by
<command>CREATE ROLE</> and <command>ALTER ROLE</>. For example, being
a member of a role with <literal>CREATEDB</> privilege does not immediately
grant the ability to create databases, even if <literal>INHERIT</> is set;
it would be necessary to become that role via
<xref linkend="SQL-SET-ROLE" endterm="SQL-SET-ROLE-title"> before
creating a database.
</para>
<para>
The <literal>INHERIT</> attribute is the default for reasons of backwards
compatibility: in prior releases of <productname>PostgreSQL</productname>,
users always had access to all privileges of groups they were members of.
However, <literal>NOINHERIT</> provides a closer match to the semantics
...
...
doc/src/sgml/user-manag.sgml
View file @
840b7f52
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment