set_role
Switch the active PostgreSQL role or user for the current session, or reset to the default, so queries run with the intended permissions.
Instructions
Set active PostgreSQL role/user for the session (SET ROLE) or reset to default (RESET ROLE)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role or username to set (e.g. 'analyst', 'app_user', or 'NONE' / 'RESET' to restore default) |