SHOW GRANTS: Changes to output for grants on functions and procedures¶
Attention
This behavior change is in the 2026_01 bundle.
For the current status of the bundle, refer to Bundle history.
In the output of the SHOW GRANTS command, the value in the name column is changing for functions and procedures:
- Before the change:
The
namecolumn includes the names and types of the arguments and the return type.For example, for the following function:
the value of the name column is:
For the following procedure:
the value in the name column is:
- After the change:
The
namecolumn just includes the types of the arguments.For example, for the following function:
the value of the name column is:
For the following procedure:
the value in the name column is:
This change makes it easier to use the value in the name column in GRANT and REVOKE statements that you want to execute.
For example, suppose that you want to revoke the privileges granted on functions and procedures to the my_custom_role role.
You can run the SHOW GRANTS command:
Then, you can copy and paste the returned values into REVOKE statements to revoke those privileges:
Ref: 2190