Giles Lean <giles(at)nemeton(dot)com(dot)au> writes:
> Randy Neumann writes:
>> However after about 3 days I start to get the error:
>>
>> psql: could not connect to server: No such file or directory
>> Is the server running locally and accepting
>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
> Perhaps the system cleans "old" files from /tmp?
Almost certainly, an over-aggressive /tmp-cleaning script is the
problem. I'd recommend fixing the cleaner script to not delete
socket files.
regards, tom lane