postgresql_16:7.1.159 REASSIGN OWNED
PostgreSQL 16 > Reference > SQL Commands > REASSIGN OWNED
change the ownership of database objects owned by a database role
REASSIGN OWNED BY { old_role | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...]
TO { new_role | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
REASSIGN OWNED BY { old_role | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...]
TO { new_role | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
Subsections
- postgresql_16:7.1.159.1 Description
- postgresql_16:7.1.159.2 Parameters
- postgresql_16:7.1.159.3 Notes
- postgresql_16:7.1.159.4 Compatibility
- postgresql_16:7.1.159.5 See Also