RefLib

Reference library for AI

Back

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

Back