projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a0ea8
)
doc: Document effects of ownership change on privileges
author
Daniel Gustafsson
<
[email protected]
>
Wed, 12 Nov 2025 16:04:35 +0000
(17:04 +0100)
committer
Daniel Gustafsson
<
[email protected]
>
Wed, 12 Nov 2025 16:04:35 +0000
(17:04 +0100)
Explicitly document that privileges are transferred along with the
ownership. Backpatch to all supported versions since this behavior
has always been present.
Author: Laurenz Albe <
[email protected]
>
Reviewed-by: Daniel Gustafsson <
[email protected]
>
Reviewed-by: David G. Johnston <
[email protected]
>
Reviewed-by: Tom Lane <
[email protected]
>
Reviewed-by: Josef Šimánek <
[email protected]
>
Reported-by: Gilles Parc <
[email protected]
>
Discussion: https://postgr.es/m/
2023185982
.
281851219
.
1646733038464
[email protected]
Backpatch-through: 14
doc/src/sgml/ddl.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/ddl.sgml
b/doc/src/sgml/ddl.sgml
index 2333d8ef87180f3ebb7a6fc05aef19f584d8c019..915ea10a8600d1b4d8ac1768ccbe3fb002b1c715 100644
(file)
--- a/
doc/src/sgml/ddl.sgml
+++ b/
doc/src/sgml/ddl.sgml
@@
-1646,6
+1646,9
@@
ALTER TABLE <replaceable>table_name</replaceable> OWNER TO <replaceable>new_owne
Superusers can always do this; ordinary roles can only do it if they are
both the current owner of the object (or a member of the owning role) and
a member of the new owning role.
+ All object privileges of the old owner are transferred to the new owner
+ along with the ownership.
+
</para>
<para>