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=4ef048f34d2f9fed2e350bdc032da5a16907f99d;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 2333d8ef871..915ea10a860 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -1646,6 +1646,9 @@ 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. +