SHOW 命令:权限更新

Attention

This behavior change is in the 2024_06 bundle.

For the current status of the bundle, refer to Bundle History.

The behavior of the SHOW <objects> command is as follows:

Before the change:

用于执行命令的角色必须有对象的 USAGE 权限才能查看对象。

例如,SHOW SCHEMAS 命令需要架构的 USAGE 权限。

架构的其他权限(例如 MODIFY)不足以查看架构中的表对象。

After the change:

可以向用于执行命令的角色授予对该对象的任何权限,以查看输出中的对象。

例如,如果向用于执行 SHOW SCHEMAS 命令的角色授予架构的 MODIFY 权限,则该角色可以在输出中看到这些架构。

因此,SHOW 命令的输出可能会返回比变更之前更多的对象,具体取决于对执行命令的角色的授权。

这些变更适用于所有 SHOW 命令。

参考:1665