My personal Cheatsheet for PostgreSQL
To create a database, you need to first ensure that the database's role exists first. Role and User are synonymous
in PostgreSQL. Once you create the ROLE, you can create the Database and set the OWNER as the ROLE.