-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: enable changing the current user of a session with SET ROLE #15005
Copy link
Copy link
Closed
Labels
A-securityA-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLA-tools-graphileIssues relating to graphile compatibilityIssues relating to graphile compatibilityC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Description
Add support for the SET ROLE command and variants from PostgreSQL. This command sets or resets the user for the current session.
This should also support SET LOCAL ROLE, which changes the role just for the current transaction. This is related to, but not dependent on SET LOCAL for session variables: #32562
At least one client, Flyway, requires support for this syntax. Graphile uses this too.
Epic CRDB-7217
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-securityA-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLA-tools-graphileIssues relating to graphile compatibilityIssues relating to graphile compatibilityC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)