Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32941

I_S.USER_PRIVILEGES has a wrong name and does not show roles

    XMLWordPrintable

Details

    Description

      INFORMATION_SCHEMA has tables COLUMN_PRIVILEGES, TABLE_PRIVILEGES, SCHEMA_PRIVILEGES — they show all users and roles that have privileges on specific objects — columns, tables, or schemas.

      Also, it has a table USER_PRIVILEGES — unlike other tables it does not show show privileges on specific users, it shows privileges that specific users have on the global level. And it does not include roles.

      Ideally, it should be renamed to GLOBAL_PRIVILEGES and should include both users and roles. Also, ideally, USER_PRIVILEGES would show privileges on users (that is PROXY privilege). But we likely cannot rename the table that existed for 20 years.

      So, we either

      • add a new table, GLOBAL_PRIVILEGES that shows both users and roles, or
      • add roles to USER_PRIVILEGES

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.