Re: "brew services list" shows postgresql as "started", but can not connect to it - Mailing list pgsql-general

From Tom Lane
Subject Re: "brew services list" shows postgresql as "started", but can not connect to it
Date
Msg-id 25746.1457889349@sss.pgh.pa.us
Whole thread Raw
In response to "brew services list" shows postgresql as "started", but can not connect to it  (Alexander Farber <alexander.farber@gmail.com>)
List pgsql-general
Alexander Farber <alexander.farber@gmail.com> writes:
> And "brew services list" reports it as "started":
>     postgresql started afarber
> /Users/afarber/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
> And I can restart it:
>     # brew services restart postgresql
>     Stopping `postgresql`... (might take a while)
>     ==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
>     ==> Successfully started `postgresql` (label: homebrew.mxcl.postgresql)
> But unfortunately I can not connect with "psql":
> psql: could not connect to server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I'd start by figuring out where that packaging causes the postmaster
to write its log file, and having a look in the log file.

Hopefully there is some documentation included with the homebrew PG
package that explains that.  But if not, perhaps a look into the
launch-agent script mentioned above would tell you.  Look for something
like a -l argument to pg_ctl, or a redirection of stderr into a file.

            regards, tom lane


pgsql-general by date:

Previous
From: Leonardo M. Ramé
Date:
Subject: Re: Distributed Table Partitioning
Next
From: Dane Foster
Date:
Subject: Re: Full text search question: "01.Bez." --> "Erster Bezirk"