May 2018
Intermediate to advanced
576 pages
30h 25m
English
Not all rights come to users via GRANT commands. Some important rights are given via user attributes (SUPERUSER, CREATEDB, and CREATEROLE), and these are never inherited.
If your user has been granted a superuser role and you want to use the superuser powers of this granted role, you have to use SET ROLE To mysuperuserrole; before anything that requires the superuser attribute to be set.
In other words, the user attributes always behave as if the user had been a NOINHERIT user.