v.24.11New Feature
Add CHECK GRANT query for privilege and existence validation
Add CHECK GRANT query to check whether the current user/role has been granted the specific privilege and whether the corresponding table/column exists in the memory. #68885 (Unalian).Why it matters
This feature helps users and administrators quickly validate access rights and the presence of database objects without executing actual queries, improving security checks and debugging of privilege issues.How to use it
Use theCHECK GRANT SQL statement followed by the privilege and object to verify. For example:CHECK GRANT SELECT ON my_tableThis will confirm if the current user/role has
SELECT privilege on my_table and if the table exists in memory.