Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A97749FA604 for ; Wed, 15 Aug 2007 17:13:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 23422-05 for ; Wed, 15 Aug 2007 17:13:41 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by postgresql.org (Postfix) with ESMTP id 667749F9797 for ; Wed, 15 Aug 2007 17:13:43 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id c24so22936rvf for ; Wed, 15 Aug 2007 13:13:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=pdymqrd9mwJQR6+g0srzUOlNioJi+BI7Pt1UaMRq3UVmEbWfsAY0JWYYqW7MLOSlq8iRirVf94Ohz+5UCMh5QCUx5hdTkehgOTIKKfiLsXNh4k8GxlFfowNli978oB8tku3XEsjhmsWl4YaUUiE1fNi1j75RJslbNYSdn8Jvt4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=k+Sq5iJhh6M81TjVxP9KdhnQUtbEDyuTn/fuFctVUSN//s7IMRzzJU/gxPuKleP8s+71i3O/yqGrUQmZsBi0SoPggTML7PtzQqnqmmPxSbcAz5QHPCcPUOvoTKHg/NI3IknCuFCT6l9mr0musT80qZRGVQ0fxpOT/JUUfspq+B4= Received: by 10.114.88.1 with SMTP id l1mr996463wab.1187208821742; Wed, 15 Aug 2007 13:13:41 -0700 (PDT) Received: by 10.114.134.18 with HTTP; Wed, 15 Aug 2007 13:13:41 -0700 (PDT) Message-ID: Date: Wed, 15 Aug 2007 17:13:41 -0300 From: "Hilton Perantunes" To: pgsql-admin@postgresql.org Subject: Yet Another Socket .s.PGSQL.5432 Problem MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50850_24371209.1187208821711" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.9 tagged_above=0 required=5 tests=BAYES_40=-0.185, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, URIBL_RHS_DOB=1.083 X-Spam-Level: X-Archive-Number: 200708/187 X-Sequence-Number: 26518 ------=_Part_50850_24371209.1187208821711 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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): ---------- # "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 =3D '*' # what IP address(es) to listen o= n; port =3D 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 =3D) --=20 Hilton William Ganzo Perantunes Sistemas de Informa=E7=E3o - Universidade Federal de Santa Catarina -- Dinheiro n=E3o traz felicidade, mas d=E1 uma sensa=E7=E3o t=E3o parecida...= -_- ------=_Part_50850_24371209.1187208821711 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi folks!

That's another "sob sob.. I can't connect to = socket blah blah .. .s.PGSQL.5432" asking for help. But this is somewh= at 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)Unstab= le. My PHP application successfully connects to the appropriated database. = Even PgAdmin3 connects to the database. But my 'postgres' user cann= ot connect to the database via command line:

----------
psql: could not connect to server:
  &nb= sp;     Is the server running locally and accepting
=         connections on Unix domain socke= t "/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 (repla= ce XXX by my network, and I just added the second line recently, in despair= ):

----------
# "local" is for Unix domain socket connect= ions only
local   all       = ;  all          &nbs= p;            &= nbsp;       trust
# IPv4 local connections= :
host    all       &n= bsp; all         XXX.XXX.XXX.1 /24       trust
host    all=          postgres   = 127.0.0.1/32    &n= bsp;     trust
# IPv6 local connections:
host&nbs= p;   all         all = ;        ::1/128    =            trust
-----= -----

Finally, that's the hot section in my postgresql.conf= :

----------
listen_addresses =3D '*'   &n= bsp;            = ;  # what IP address(es) to listen on; 
port =3D 5432 &n= bsp;            = ;            &n= bsp;  # (change requires restart)
----------

So, I just can't connect in the database through = command line. Someone can waste some time helping me?

Thanks in adva= nce =3D)

--
Hilton William Ganzo Perantunes
Sistemas de Infor= ma=E7=E3o - Universidade Federal de Santa Catarina
--
Dinheiro n=E3o traz felicidade, mas d=E1 uma sensa=E7=E3o t=E3o p= arecida...  -_- ------=_Part_50850_24371209.1187208821711--