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
d73336f8
Commit
d73336f8
authored
19 years ago
by
Neil Conway
Browse files
Options
Downloads
Patches
Plain Diff
Correct some errors and do some SGML police work on the reference pages
for REASSIGN OWNED and DROP OWNED.
parent
a619e068
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/src/sgml/ref/drop_owned.sgml
+51
-19
51 additions, 19 deletions
doc/src/sgml/ref/drop_owned.sgml
doc/src/sgml/ref/drop_role.sgml
+5
-2
5 additions, 2 deletions
doc/src/sgml/ref/drop_role.sgml
doc/src/sgml/ref/reassign_owned.sgml
+48
-12
48 additions, 12 deletions
doc/src/sgml/ref/reassign_owned.sgml
with
104 additions
and
33 deletions
doc/src/sgml/ref/drop_owned.sgml
+
51
−
19
View file @
d73336f8
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_owned.sgml,v 1.
1
200
5/11/21 12:49:30 alvherre
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_owned.sgml,v 1.
2
200
6/04/02 04:02:40 neilc
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -20,7 +20,7 @@ PostgreSQL documentation
...
@@ -20,7 +20,7 @@ PostgreSQL documentation
<refsynopsisdiv>
<refsynopsisdiv>
<synopsis>
<synopsis>
DROP OWNED <replaceable class="PARAMETER">name</replaceable> [, ...] [ RESTRICT | CASCADE ]
DROP OWNED
BY
<replaceable class="PARAMETER">name</replaceable> [, ...] [ RESTRICT | CASCADE ]
</synopsis>
</synopsis>
</refsynopsisdiv>
</refsynopsisdiv>
...
@@ -28,36 +28,68 @@ DROP OWNED <replaceable class="PARAMETER">name</replaceable> [, ...] [ RESTRICT
...
@@ -28,36 +28,68 @@ DROP OWNED <replaceable class="PARAMETER">name</replaceable> [, ...] [ RESTRICT
<title>Description</title>
<title>Description</title>
<para>
<para>
The
<command>DROP OWNED</command>
instructs the system to drop those
<command>DROP OWNED</command>
drops all the objects in the current
database
objects
owned by one of the
given roles which reside on the
database
that are
owned by one of the
specified roles. Any
current database. All
privileges granted to the given roles
will also be
privileges granted to the given roles
on objects in the current
revoked.
database will also be
revoked.
</para>
</para>
</refsect1>
<para>
<refsect1>
If <literal>CASCADE</> is specified, <command>DROP OWNED</command>
<title>Parameters</title>
will behave like a <command>DROP ... CASCADE</command> was issued
for each object, that is, objects dependent on the ones owned by the
<variablelist>
given users will be dropped as well.
<varlistentry>
</para>
<term><replaceable class="PARAMETER">name</replaceable></term>
<listitem>
<para>
The name of a role whose objects will be dropped, and whose
privileges will be revoked.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>CASCADE</literal></term>
<listitem>
<para>
Automatically drop objects that depend on the affected objects.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>RESTRICT</literal></term>
<listitem>
<para>
Refuse to drop the objects owned by a role if any other database
objects depend on one of the affected objects. This is the default.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refsect1>
<refsect1>
<refsect1>
<title>Notes</title>
<title>Notes</title>
<para>
<para>
The <command>DROP OWNED</command> command is mostly used in preparation to
<command>DROP OWNED</command> is often used to prepare for the
drop the roles. It may be necessary to issue the command in more than one
removal of one or more roles. Because <command>DROP OWNED</command>
database.
only affects the objects in the current database, it is usually
necessary to execute this command in each database that contains
objects owned by a role that is to be removed.
</para>
</para>
<para>
<para>
Using the <literal>CASCADE</literal> option may make the command
recurse to
Using the <literal>CASCADE</literal> option may make the command
objects owned by other users.
recurse to
objects owned by other users.
</para>
</para>
<para>
<para>
See the <command>REASSIGN OWNED</command> command for an alternative that
The <xref linkend="sql-reassign-owned"
gives the objects away to another role.
endterm="sql-reassign-owned-title"> command is an alternative that
reassigns the ownership of all the database objects owned by one or
more roles.
</para>
</para>
</refsect1>
</refsect1>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/ref/drop_role.sgml
+
5
−
2
View file @
d73336f8
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_role.sgml,v 1.
3
2006/0
2
/0
4 22:38:39 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_role.sgml,v 1.
4
2006/0
4
/0
2 04:02:40 neilc
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -38,7 +38,10 @@ DROP ROLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...
...
@@ -38,7 +38,10 @@ DROP ROLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...
A role cannot be removed if it is still referenced in any database
A role cannot be removed if it is still referenced in any database
of the cluster; an error will be raised if so. Before dropping the role,
of the cluster; an error will be raised if so. Before dropping the role,
you must drop all the objects it owns (or reassign their ownership)
you must drop all the objects it owns (or reassign their ownership)
and revoke any privileges the role has been granted.
and revoke any privileges the role has been granted. The <xref
linkend="sql-reassign-owned" endterm="sql-reassign-owned-title">
and <xref linkend="sql-drop-owned" endterm="sql-drop-owned-title">
commands can be useful for this purpose.
</para>
</para>
<para>
<para>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/ref/reassign_owned.sgml
+
48
−
12
View file @
d73336f8
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/reassign_owned.sgml,v 1.
1
200
5/11/21 12:49:30 alvherre
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/reassign_owned.sgml,v 1.
2
200
6/04/02 04:02:40 neilc
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -11,7 +11,7 @@ PostgreSQL documentation
...
@@ -11,7 +11,7 @@ PostgreSQL documentation
<refnamediv>
<refnamediv>
<refname>REASSIGN OWNED</refname>
<refname>REASSIGN OWNED</refname>
<refpurpose>change ownership of database objects owned by a database role</refpurpose>
<refpurpose>change
the
ownership of database objects owned by a database role</refpurpose>
</refnamediv>
</refnamediv>
<indexterm zone="sql-reassign-owned">
<indexterm zone="sql-reassign-owned">
...
@@ -20,7 +20,7 @@ PostgreSQL documentation
...
@@ -20,7 +20,7 @@ PostgreSQL documentation
<refsynopsisdiv>
<refsynopsisdiv>
<synopsis>
<synopsis>
REASSIGN OWNED <replaceable class="PARAMETER">old_role</replaceable> [, ...] TO <replaceable class="PARAMETER">new_role</replaceable>
REASSIGN OWNED
BY
<replaceable class="PARAMETER">old_role</replaceable> [, ...] TO <replaceable class="PARAMETER">new_role</replaceable>
</synopsis>
</synopsis>
</refsynopsisdiv>
</refsynopsisdiv>
...
@@ -28,25 +28,61 @@ REASSIGN OWNED <replaceable class="PARAMETER">old_role</replaceable> [, ...] TO
...
@@ -28,25 +28,61 @@ REASSIGN OWNED <replaceable class="PARAMETER">old_role</replaceable> [, ...] TO
<title>Description</title>
<title>Description</title>
<para>
<para>
The
<command>REASSIGN OWNED</command> instructs the system to change
<command>REASSIGN OWNED</command> instructs the system to change
the ownership of the database objects owned by one of the
old_roles,
the ownership of the database objects owned by one of the
to new_role.
old_roles,
to new_role.
</para>
</para>
</refsect1>
</refsect1>
<refsect1>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term><replaceable class="PARAMETER">old_role</replaceable></term>
<listitem>
<para>
The name of a role. The ownership of all the objects in the
current database owned by this role will be reassigned to
<replaceable class="PARAMETER">new_role</replaceable>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="PARAMETER">new_role</replaceable></term>
<listitem>
<para>
The name of the role that will be made the new owner of the
affected objects.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<refsect1>
<title>Notes</title>
<title>Notes</title>
<para>
<para>
The <command>REASSIGN OWNED</command> command is mostly used in preparation to
<command>REASSIGN OWNED</command> is often used to prepare for the
drop the roles. See the <command>DROP OWNED</command> command for an
removal of one or more roles. Because <command>REASSIGN
alternative that drops the objects.
OWNED</command> only affects the objects in the current database,
it is usually necessary to execute this command in each database
that contains objects owned by a role that is to be removed.
</para>
<para>
The <xref linkend="sql-drop-owned"
endterm="sql-drop-owned-title"> command is an alternative that
drops all the database objects owned by one or more roles.
</para>
</para>
<para>
<para>
The <command>REASSIGN OWNED</command> command does not affect the privileges
The <command>REASSIGN OWNED</command> command does not affect the
granted to the old_roles in objects not owned by them. Use
privileges granted to the old_roles in objects that are not owned
<command>DROP OWNED</command> to remove them.
by them. Use <command>DROP OWNED</command> to revoke those
privileges.
</para>
</para>
</refsect1>
</refsect1>
...
...
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