On Fri, 2008-09-05 at 11:44 +0200, Filip Rembiałkowski wrote:
>
> is the server running (see process list, ps ax | grep postgres)
> does the socket file exist? (see filesystem, ls -l /tmp/.s.PGSQL.5432)
Since you say things work for several days, then stop -- make sure
there's no braindead automated cleanup of /tmp that is
removing /tmp/.s.PGSQL.5432
>
> it's possible that the client tries to connect via non-existing
> socket. it happens when server config is different from compiled-in
> defaults for socket location.
>
> in this case try to connect via TCP, this should help