Greetings,
* Paul Förster (paul(dot)foerster(at)gmail(dot)com) wrote:
> I create a role "test" and it can't (intentionally) login. But why does has_database_privilege() return true if "test" can't connect to the cluster and can't use any database? Is this a bug or am I doing something strange here? Any ideas?
The role attribute system (where you see 'cannot login') is largely
independent from the GRANT system (which is what has_database_privilege
is checking). Both are required for a user to log in.
Thanks,
Stephen