Re: file-locking and postmaster.pid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: file-locking and postmaster.pid
Дата
Msg-id 2905.1148511214@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: file-locking and postmaster.pid  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Well, you are wrong here.  We _want_ every backend to hold a shared
> lock.  We need to stop a postmaster from starting if there is a backend
> running that was started by a no-longer-running postmaster.

Note that we currently rely on checking for SysV shared memory attach
counts to protect against this case; the postmaster PID doesn't enter
into it.  We don't have to insist on the postmaster interlock handling
this too.  (Although surely it'd be nice to not depend on SysV attach
counts for this, because that's a portability issue in itself.)
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: file-locking and postmaster.pid
Следующее
От: korry
Дата:
Сообщение: Re: file-locking and postmaster.pid