WL#10895: INFORMATION_SCHEMA views for Roles

Affects: Server-8.0   —   Status: Complete

There's a community request for ease of use views which covers:

  A. List of roles enabled for the current session

  B. List of default roles

  C. List of global roles

  D. List of users for a given role

The SQL standards defines following INFORMATION_SCHEMA (I_S)
tables.  These standard tables cover the A) and D) from above
list.  This WL aims to implement all/some of following tables
plus some additional non-standard I_S tables, if SQL standard
does not serve all the requirements listed above.

  INFORMATION_SCHEMA.APPLICABLE_ROLES
  INFORMATION_SCHEMA.ADMINISTRABLE_ROLE_AUTHORIZATIONS
  INFORMATION_SCHEMA.ENABLED_ROLES

  INFORMATION_SCHEMA.ROLE_TABLE_GRANTS
  INFORMATION_SCHEMA.ROLE_COLUMN_GRANTS
  INFORMATION_SCHEMA.ROLE_ROUTINE_GRANTS

  INFORMATION_SCHEMA.ROLE_USAGE_GRANTS

  [Following are few I_S table that are not feasible to be
  implemented as of now. Mainly because the concepts of
  TABLE_METHOD and User Defined Data Type (UDF) are not supported
  by MYSQL]

  INFORMATION_SCHEMA.ROLE_TABLE_METHOD_GRANTS
  INFORMATION_SCHEMA.ROLE_UDT_GRANTS