Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: implement write path for ALTER ROLE ... SET
ALTER ROLE ... SET will now persist the default settings in the system.database_role_settings table. The behavior matches Postgres in the following ways: - RESET does not validate the setting name. - SET validates both the name and the proposed default value. - The defaults are stored in a string array, in key=val format. The privilege checking is slightly different: we diverge from Postgres by prohibiting users from modifying their own defaults unless they have CREATEROLE. This is analogous to our restriction that prevents a user from modifying their own password. Also, the root and admin roles can't have their defaults set. There is no release note since this does not yet affect any user-behavior. Everything in this commit is write-only Release note: None
- Loading branch information