Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
68030: sql: implement write path for ALTER ROLE ... SET r=RichardJCai a=rafiss Touches cockroachdb#21151 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. There is no release note since this does not yet affect any user-behavior. Everything in this commit is write-only Release note: None Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information