Re: What happens if the socket lock file is deleted?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What happens if the socket lock file is deleted?
Дата
Msg-id 1363739.1769721879@sss.pgh.pa.us
обсуждение
Ответ на Re: What happens if the socket lock file is deleted?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: What happens if the socket lock file is deleted?
Список pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
>  From here at ~line 1781:

> https://github.com/postgres/postgres/blob/master/src/backend/postmaster/postmaster.c

>         /*
>          * Once a minute, verify that postmaster.pid hasn't been removed or
>          * overwritten.  If it has, we force a shutdown.

Actually, Steve was asking about socket lock files, so the relevant
code fragment is the bit just below that:

        /*
         * Touch Unix socket and lock files every 58 minutes, to ensure that
         * they are not removed by overzealous /tmp-cleaning tasks.  We assume
         * no one runs cleaners with cutoff times of less than an hour ...
         */
        if (now - last_touch_time >= 58 * SECS_PER_MINUTE)
        {
            TouchSocketFiles();
            TouchSocketLockFiles();
            last_touch_time = now;
        }

            regards, tom lane



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