Re: Bug #882: Cannot manually log in to database.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #882: Cannot manually log in to database.
Дата
Msg-id 28043.1043354924@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #882: Cannot manually log in to database.  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> okapview# /opt/pgsql-7.1.3/bin/psql -U postgres -d AppliedView
> psql: connectDBStart() -- connect() failed: No such file or directory
>         Is the postmaster running locally
>         and accepting connections on Unix socket '/tmp/.s.PGSQL.5432'?

> Stopping and starting the postmaster daemon clears up this problem, but this problem creeps up about 2 times a week,
andis a major annoyance. 

Sounds to me like you've got a cron script that removes everything in
tmp about twice a week.  I suggest teaching it not to remove socket
files.  On most Unixen the mod date on a socket file isn't changed by
normal activity, so a tmp-cleaner that only pays attention to the mod
date will mistakenly decide a socket is fair game for removal.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: remyapl@cppdnotes.iobnet.co.in
Дата:
Сообщение:
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #883: explain analyze causes postgres to die