Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D32189F9F6C for ; Wed, 15 Aug 2007 17:35:11 -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 73266-02 for ; Wed, 15 Aug 2007 17:35:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from servidor58.suempresa.com (servidor58.suempresa.com [201.130.79.68]) by postgresql.org (Postfix) with ESMTP id 951119F9852 for ; Wed, 15 Aug 2007 17:35:07 -0300 (ADT) Received: (qmail 15414 invoked from network); 15 Aug 2007 15:35:08 -0500 Received: from dsl-189-142-111-136.prod-infinitum.com.mx (HELO ?192.168.1.5?) (189.142.111.136) by servidor58.suempresa.com with SMTP; 15 Aug 2007 15:35:06 -0500 Subject: Re: Yet Another Socket .s.PGSQL.5432 Problem From: Julio Cesar =?ISO-8859-1?Q?S=E1nchez_Gonz=E1lez?= To: Hilton Perantunes Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Wed, 15 Aug 2007 15:34:44 -0500 Message-Id: <1187210085.6713.8.camel@andromeda> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.177 tagged_above=0 required=5 tests=AWL=0.176, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200708/189 X-Sequence-Number: 26520 El mié, 15-08-2007 a las 17:13 -0300, Hilton Perantunes escribió: > Hi folks! > > That's another "sob sob.. I can't connect to socket blah > blah .. .s.PGSQL.5432" asking for help. But this is somewhat bizarre, > and i'm not used to the 8.2's postgresql.conf file. > > I'm running a PostgreSQL 8.4.2 powered by Debian Sarge (very)Unstable. > My PHP application successfully connects to the appropriated database. > Even PgAdmin3 connects to the database. But my 'postgres' user cannot > connect to the database via command line: > > ---------- > psql: could not connect to server: > Is the server running locally and accepting > connections on Unix domain socket > "/var/run/postgresql/.s.PGSQL.5432"? > ---------- > > Well, the socket file actually IS there (zero bytes of size) and it's > given the correct permissions. Now, I have this in my pg_hba.conf > (replace XXX by my network, and I just added the second line recently, > in despair): > Try stoping the postgresql process and delete the socket unix file, restart the postgresql daemon and we to mean. > ---------- > # "local" is for Unix domain socket connections only > local all all trust > # IPv4 local connections: > host all all XXX.XXX.XXX.1 /24 trust > host all postgres 127.0.0.1/32 trust > # IPv6 local connections: > host all all ::1/128 trust > ---------- > > Finally, that's the hot section in my postgresql.conf: > > ---------- > listen_addresses = '*' # what IP address(es) to > listen on; > port = 5432 # (change requires restart) > ---------- > > So, I just can't connect in the database through command line. Someone > can waste some time helping me? > > Thanks in advance =) > > -- > Hilton William Ganzo Perantunes > Sistemas de Informação - Universidade Federal de Santa Catarina > -- > Dinheiro não traz felicidade, mas dá uma sensação tão parecida... -_- -- Regards, Julio Cesar Sánchez González www.sistemasyconectividad.com.mx blog: http://darkavngr.blogspot.com --- Ahora me he convertido en la muerte, destructora de mundos. Soy la Muerte que se lleva todo, la fuente de las cosas que vendran.