mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-24486 Add table_privileges
view to the sys
schema
The existing INFORMATION_SCHEMA.TABLE_PRIVILEGES displays only those privileges that were specifically granted on the table level, whereas it may be useful to see privileges granted at the database and global level. This commit adds a new view `table_privileges` to the `sys` schema for that purpose. The view shows privileges on existing tables and views, combining all possible levels: - user_privileges - schema_privileges - table_privileges
This commit is contained in:
@ -140,6 +140,7 @@ TABLES TABLES
|
||||
TABLESPACES TABLESPACES
|
||||
TABLE_CONSTRAINTS TABLE_CONSTRAINTS
|
||||
TABLE_PRIVILEGES TABLE_PRIVILEGES
|
||||
TABLE_PRIVILEGES table_privileges
|
||||
TABLE_STATISTICS TABLE_STATISTICS
|
||||
TRIGGERS TRIGGERS
|
||||
t1 t1
|
||||
@ -163,6 +164,7 @@ TABLES TABLES
|
||||
TABLESPACES TABLESPACES
|
||||
TABLE_CONSTRAINTS TABLE_CONSTRAINTS
|
||||
TABLE_PRIVILEGES TABLE_PRIVILEGES
|
||||
TABLE_PRIVILEGES table_privileges
|
||||
TABLE_STATISTICS TABLE_STATISTICS
|
||||
TRIGGERS TRIGGERS
|
||||
t1 t1
|
||||
@ -186,6 +188,7 @@ TABLES TABLES
|
||||
TABLESPACES TABLESPACES
|
||||
TABLE_CONSTRAINTS TABLE_CONSTRAINTS
|
||||
TABLE_PRIVILEGES TABLE_PRIVILEGES
|
||||
TABLE_PRIVILEGES table_privileges
|
||||
TABLE_STATISTICS TABLE_STATISTICS
|
||||
TRIGGERS TRIGGERS
|
||||
t1 t1
|
||||
@ -1508,6 +1511,7 @@ statements_with_runtimes_in_95th_percentile YES
|
||||
statements_with_sorting YES
|
||||
statements_with_temp_tables YES
|
||||
statement_analysis YES
|
||||
table_privileges NO
|
||||
user YES
|
||||
user_summary NO
|
||||
user_summary_by_file_io NO
|
||||
|
Reference in New Issue
Block a user