I have a brew-installed version of Postgres 12.3 running on my mac.
\du shows two users:
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
facthna | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
postgres | Superuser, Create role, Create DB | {}
This command is all it takes to log me in:
psql -U postgres
Note it doesn't require a password.
Once logged in, I have tried this:
ALTER USER postgres WITH PASSWORD 'blah';
Which responds with:
ALTER ROLE
However logging out and logging back in still doesn't require a password.
I have also tried restarting the Postgres service but this makes no difference.
Please help.