The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/16/sql-set-role.html Description:
it is good to mention that: The specified role_name must be a role that the current session user is a member of "and has SET True option on it." The second part missed in documentation for set role command.