Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
41273476
Commit
41273476
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation about CREATEROLE privilege.
parent
35c89833
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/ref/grant.sgml
+7
-3
7 additions, 3 deletions
doc/src/sgml/ref/grant.sgml
doc/src/sgml/user-manag.sgml
+15
-4
15 additions, 4 deletions
doc/src/sgml/user-manag.sgml
with
22 additions
and
7 deletions
doc/src/sgml/ref/grant.sgml
+
7
−
3
View file @
41273476
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.4
8
2005/
07/26
23:2
4
:0
2
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.4
9
2005/
10/13
23:2
6
:0
0
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -293,8 +293,12 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]
<para>
If <literal>WITH ADMIN OPTION</literal> is specified, the member may
in turn grant membership in the role to others. Without the admin
option, the recipient cannot do that.
in turn grant membership in the role to others, and revoke membership
in the role as well. Without the admin option, ordinary users cannot do
that. However,
database superusers can grant or revoke membership in any role to anyone.
Roles having <literal>CREATEROLE</> privilege can grant or revoke
membership in any role that is not a superuser.
</para>
</refsect2>
</refsect1>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/user-manag.sgml
+
15
−
4
View file @
41273476
<!--
$PostgreSQL: pgsql/doc/src/sgml/user-manag.sgml,v 1.3
0
2005/0
8
/1
4
23:
35:37
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/user-manag.sgml,v 1.3
1
2005/
1
0/1
3
23:
26:00
tgl Exp $
-->
<chapter id="user-manag">
...
...
@@ -203,9 +203,10 @@ CREATE USER <replaceable>name</replaceable>;
checks). To create such a role, use <literal>CREATE ROLE
<replaceable>name</replaceable> CREATEROLE</literal>.
A role with <literal>CREATEROLE</> privilege can alter and drop
other roles, too. However, to alter or drop a superuser role,
superuser status is required; <literal>CREATEROLE</> is not sufficient
for that.
other roles, too, as well as grant or revoke membership in them.
However, to create, alter, drop, or change membership of a
superuser role, superuser status is required;
<literal>CREATEROLE</> is not sufficient for that.
</para>
</listitem>
</varlistentry>
...
...
@@ -234,6 +235,16 @@ CREATE USER <replaceable>name</replaceable>;
endterm="sql-alterrole-title"> commands for details.
</para>
<tip>
<para>
It is good practice to create a role that has the <literal>CREATEDB</>
and <literal>CREATEROLE</> privileges, but is not a superuser, and then
use this role for all routine management of databases and roles. This
approach avoids the dangers of operating as a superuser for tasks that
do not really require it.
</para>
</tip>
<para>
A role can also have role-specific defaults for many of the run-time
configuration settings described in <xref
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment