Show default privileges for objects created by a specific user/role
> CREATE USER max;
> SHOW DEFAULT PRIVILEGES FOR ROLE max;
role | for_all_roles | object_type | grantee | privilege_type-------+---------------+-------------+---------+----------------- max | false | schemas | max | ALL max | false | sequences | max | ALL max | false | tables | max | ALL max | false | types | max | ALL max | false | types | public | USAGE(5 rows)
To show the default that a user received as a grantee, issue the following statement:
SHOW DEFAULT PRIVILEGES FOR GRANTEE root;
role | for_all_roles | object_type | grantee | privilege_type | is_grantable-------+---------------+-------------+---------+----------------+--------------- root | f | routines | root | ALL | t root | f | schemas | root | ALL | t root | f | sequences | root | ALL | t root | f | tables | root | ALL | t root | f | types | root | ALL | t(5 rows)