postgres runs under the postgres user, per:
You want to sudo postgres psql discourse to hit the right user and database…
sudo postgres psql discourse