Skip to content

Test guide on macOS / Linux #2

@karlhorky

Description

@karlhorky

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:

sudo -u postgres psql

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions