From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alexander Farber <alexander(dot)farber(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: "brew services list" shows postgresql as "started", but can not connect to it |
Date: | 2016-03-13 17:15:49 |
Message-ID: | 25746.1457889349@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Alexander Farber <alexander(dot)farber(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Dane Foster | 2016-03-13 17:32:12 | Re: Full text search question: "01.Bez." --> "Erster Bezirk" |
Previous Message | Leonardo M. Ramé | 2016-03-13 15:37:51 | Re: Distributed Table Partitioning |