Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 09B9F9F9917 for ; Wed, 15 Aug 2007 19:01:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 98268-01 for ; Wed, 15 Aug 2007 19:01:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 894D19F9EB9 for ; Wed, 15 Aug 2007 19:01:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l7FM1HLe007892; Wed, 15 Aug 2007 18:01:17 -0400 (EDT) To: "Hilton Perantunes" cc: pgsql-admin@postgresql.org Subject: Re: Yet Another Socket .s.PGSQL.5432 Problem In-reply-to: References: <1187210085.6713.8.camel@andromeda> Comments: In-reply-to "Hilton Perantunes" message dated "Wed, 15 Aug 2007 17:48:57 -0300" Date: Wed, 15 Aug 2007 18:01:17 -0400 Message-ID: <7891.1187215277@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/191 X-Sequence-Number: 26522 "Hilton Perantunes" 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