feat(catalog): UserInfo and GrantPrivilege upon catalog #2643
Labels
component/frontend
Protocol, parsing, binder.
component/meta
Meta related issue.
type/feature
type/tracking
Tracking issue.
Data type definition and associated RPC service in Meta:
Unlike the standard PostgreSQL syntax, to simply our design, we don't have a role definition in current stage and only support part of options for user and privilege. Here are the syntaxes we plan to support:
SQL Syntax
CREATE USER, refer: CREATE USER
Some options like INHERIT/REPLICATION/BYPASSRLS/CONNECTION LIMIT are not supported in current design. This could be easy to expand in the future.
ALTER USER, refer: ALTER USER
DROP USER, refer: DROP USER
GRANT, refer: GRANT
We only support grants privileges on a database object(database, schema, table). The possible privileges are: SELECT, INSERT, UPDATE, DELETE, CREATE, CONNECT, ALL. GRANT and REVOKE can also be done by a user that is not super user, but is a member that holds privileges WITH GRANT OPTION on the object.
If WITH GRANT OPTION is specified, the recipient of the privilege can in turn grant it to others.
If GRANTED BY is specified, the specified grantor must be the current user. This clause is currently present in this form only for SQL compatibility.
REVOKE, refer: REVOKE
The text was updated successfully, but these errors were encountered: