Re: error connecting to database - Mailing list pgsql-general

From Tom Lane
Subject Re: error connecting to database
Date
Msg-id 13652.1096657575@sss.pgh.pa.us
Whole thread Raw
In response to error connecting to database  (Alexander Cohen <alex@toomuchspace.com>)
Responses Re: error connecting to database  (Alexander Cohen <alex@toomuchspace.com>)
List pgsql-general
Alexander Cohen <alex@toomuchspace.com> writes:
> Could not connect to server: permission denied.
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"

> What exctly does this error message mean? What permissions is this
> error talking about?

The permissions on the socket file /tmp/.s.PGSQL.5432.

Ordinarily the postmaster will create the socket as world-writable,
but evidently not this time.  Perhaps you have set a nonstandard value
for "unix_socket_permissions"?  Another possibility is that it's not
the socket file itself, but /tmp that is mis-permissioned.

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Frankel
Date:
Subject: Re: newby question
Next
From: Alexander Cohen
Date:
Subject: Re: error connecting to database