Totally new to postgresql; just had it installed (version 14.1) for the first time via brew on m1 Mac. Installation works fine, but I thought the installation process shall also create a superuser called 'postgres' but when trying to connect to PostgreSql as 'postgres' using
sudo -u postgres psql
It says unknown user: postgres
What am I missing here?
UPDATE: sorry but forgot to add that I am following a book which uses postgresql version 13; in the book it says after installing via brew it auto creates a superuser 'postgres' which can be used to log in the server in order to create database.