postgres.git / summary / log / commit / refs

commit    f024dee6619ff0671d734e20eb99ffc3492a46bf
Author:   Daniel Gustafsson <dgustafsson@postgresql.org>
Date:     Wed Nov 12 16:04:35 2025 +0000
First released in: 14.21, 15.16, 16.12, 17.8, 18.2

    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


doc/src/sgml/ddl.sgml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 65bc070d2e5..806c10af294 100644 --- 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> [parent: 6ae5228a1366]