From: Daniel Gustafsson Date: Wed, 12 Nov 2025 16:04:35 +0000 (+0100) Subject: doc: Document effects of ownership change on privileges X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=608566bf17c327976bec647cc28d2996be4c0010;p=postgresql.git 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 Reviewed-by: Daniel Gustafsson Reviewed-by: David G. Johnston Reviewed-by: Tom Lane Reviewed-by: Josef Šimánek Reported-by: Gilles Parc Discussion: https://postgr.es/m/2023185982.281851219.1646733038464.JavaMail.root@zimbra15-e2.priv.proxad.net Backpatch-through: 14 --- diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 38ece3f4f72..4c9ec77423c 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -1719,6 +1719,8 @@ ALTER TABLE table_name OWNER TO 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.