admin
SET ROLE
Switches effective authorization to an allowed role; session_user remains the original session identity.
Formal Syntax & Structure
sql syntaxsql
SET ROLE bm_lab_reader;Working Example
Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.SET ROLE bm_lab_reader;