doc: Document effects of ownership change on privileges
authorDaniel Gustafsson <[email protected]>
Wed, 12 Nov 2025 16:04:35 +0000 (17:04 +0100)
committerDaniel 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

index 38ece3f4f720abcd6eba7fc82ead28936c0a54a6..4c9ec77423c5acfe073d263fa1b81ac5d2c15356 100644 (file)
@@ -1719,6 +1719,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 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>