Hi there, thanks for this cool resource!
Some connection commands (eg. the Opening a connection locally command) do not work properly on macOS - the currently logged-in system user is used to log in (at least with Homebrew):
$ psql -U postgres
psql: error: could not connect to server: FATAL: role "postgres" does not exist
Unfortunately, the command is different on the default installation of PostgreSQL on macOS:
$ psql postgres
psql (12.4)
Type "help" for help.
postgres=#
Linux has a third way (!!) of logging in, the last time I checked:
References:
Hi there, thanks for this cool resource!
Some connection commands (eg. the Opening a connection locally command) do not work properly on macOS - the currently logged-in system user is used to log in (at least with Homebrew):
$ psql -U postgres psql: error: could not connect to server: FATAL: role "postgres" does not existUnfortunately, the command is different on the default installation of PostgreSQL on macOS:
Linux has a third way (!!) of logging in, the last time I checked:
References: