projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae5228
)
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 65bc070d2e5faae0de84f496f649973dce63eb95..806c10af294701f6be7a0394ed8311ac7a413dde 100644
(file)
--- a/
doc/src/sgml/ddl.sgml
+++ b/
doc/src/sgml/ddl.sgml
@@
-1959,6
+1959,8
@@
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 inherit the privileges of the
owning role) and able to <literal>SET ROLE</literal> to the new owning role.
+ All object privileges of the old owner are transferred to the new owner
+ along with the ownership.
</para>
<para>