I would like to check the perm in PostgreSQL db as well as I do it via this command
'SELECT HAS_PERMS_BY_NAME(NULL, 'DATABASE', 'CREATE DATABASE')' for the SQL server.
What is the best way to do the same in PostgreSQL? I didn`t find the similar function in PostgreSQL.