From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hilton Perantunes <hperantunes@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Yet Another Socket .s.PGSQL.5432 Problem
Date: Wed, 15 Aug 2007 18:01:17 -0400
Message-ID: <7891.1187215277@sss.pgh.pa.us> (raw)
In-Reply-To: <b24a8cca0708151348o5ef92415tc42177aa3c843359@mail.gmail.com>
References: <b24a8cca0708151313k43c05849y8906967046775a2b@mail.gmail.com>
<1187210085.6713.8.camel@andromeda>
<b24a8cca0708151348o5ef92415tc42177aa3c843359@mail.gmail.com>
"Hilton Perantunes" <hperantunes@gmail.com> writes:
> When I stop the database, the socket file is automatically removed. That's
> the way it happened before... but now, oddly enough, I restarted the
> database at will several times, my app is still running, pgadmin too... and
> no socket file is created. o.0
Are you sure that's where the database thinks the socket file should be?
/var/run/postgresql is *not* the factory default for this; /tmp is.
If you replaced a distro build with your own or vice versa you may be
confused by that.
Wrong permissions on the directory or its parents could be the
problem, too.
> psql: could not connect to server:
> Is the server running locally and accepting
> connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
This clip omits the most important part of the message: there should be
a kernel error code after the colon.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, hperantunes@gmail.com
Subject: Re: Yet Another Socket .s.PGSQL.5432 Problem
In-Reply-To: <7891.1187215277@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox