Re: postmaster generates no socket - Mailing list pgsql-novice

From Tom Lane
Subject Re: postmaster generates no socket
Date
Msg-id 15051.1056768849@sss.pgh.pa.us
Whole thread Raw
In response to postmaster generates no socket  (christoph.dellavalle@goetheanum.ch)
List pgsql-novice
christoph.dellavalle@goetheanum.ch writes:
> in postgresql.conf I set tcpip_socket=true
> unix_socket_directory = '/tmp'

okay ...

> The attempt to connect via PHP4 results in the mesage:
> Warning: Unable to connect to PostgreSQL server: could not connect to server: No such file or directory Is the server
runninglocally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?  

You seem to be using a nonstandard build of the client-side code that
expects unix_socket_directory to be "/var/run/postgresql".  You can
either change the postmaster's setting to agree, or fix the client
to look in /tmp.

            regards, tom lane

pgsql-novice by date:

Previous
From: WillyLinux -
Date:
Subject: Recover database
Next
From: Josh Berkus
Date:
Subject: Re: SELECT too complex?