Skip to content

Commit 4ef048f

Browse files
doc: Document effects of ownership change on privileges
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 <laurenz.albe@cybertec.at> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: David G. Johnston <david.g.johnston@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Josef Šimánek <josef.simanek@gmail.com> Reported-by: Gilles Parc <gparc@free.fr> Discussion: https://postgr.es/m/2023185982.281851219.1646733038464.JavaMail.root@zimbra15-e2.priv.proxad.net Backpatch-through: 14
1 parent f8a0ea8 commit 4ef048f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/src/sgml/ddl.sgml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,9 @@ ALTER TABLE <replaceable>table_name</replaceable> OWNER TO <replaceable>new_owne
16461646
Superusers can always do this; ordinary roles can only do it if they are
16471647
both the current owner of the object (or a member of the owning role) and
16481648
a member of the new owning role.
1649+
All object privileges of the old owner are transferred to the new owner
1650+
along with the ownership.
1651+
16491652
</para>
16501653

16511654
<para>

0 commit comments

Comments
 (0)