For Mac, if you have installed postgres using Brew then using psql try running
\du
If this has missing role of 'posttgres' then create one using the below:
CREATE USER postgres WITH SUPERUSER PASSWORD 'password';