New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL: Add support for SET ROLE
statement
#19165
Comments
This commit updates the Session struct to separately track the current user and the session user. Additionally, it updates the corresponding session information functions to query the right role. This will be useful later when we implement `SET ROLE`. Works towards resolving MaterializeInc#19165
This commit updates the Session struct to separately track the current user and the session user. Additionally, it updates the corresponding session information functions to query the right role. This will be useful later when we implement `SET ROLE`. Works towards resolving MaterializeInc#19165
This commit updates the Session struct to separately track the current user and the session user. Additionally, it updates the corresponding session information functions to query the right role. This will be useful later when we implement `SET ROLE`. Works towards resolving MaterializeInc#19165
This commit updates the Session struct to separately track the current user and the session user. Additionally, it updates the corresponding session information functions to query the right role. This will be useful later when we implement `SET ROLE`. Works towards resolving #19165
Version 16 will have a couple of changes to role membership: |
Previously, the default values for session and system variables had to be known statically at compile time. This doesn't work for variables that have no static default, such as `role`. This commit updates the variable framework so that default values can either be specified statically at compile time or dynamically at run time. This will allow us to add variables like `role` and `session authorization` in future commits. Works towards resolving MaterializeInc#19165
For a good overview on the role hierarchy in PostgreSQL take a look here: https://github.com/postgres/postgres/blob/9089287aa037fdecb5a52cec1926e5ae9569e9f9/src/backend/utils/init/miscinit.c#L461-L493 |
I started updating the session variable framework to support a role session variable here: #20353 I never merged it, but it might be a good starting place. |
The
This may suggest that the |
Feature request
SET ROLE
allows a user to change the active role of their current session.See: https://www.postgresql.org/docs/15/sql-set-role.html
The text was updated successfully, but these errors were encountered: