Re: server auto-restarts and ipcs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: server auto-restarts and ipcs
Дата
Msg-id 6417.1100043334@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: server auto-restarts and ipcs  ("Ed L." <pgsql@bluepolka.net>)
Ответы Re: server auto-restarts and ipcs  ("Ed L." <pgsql@bluepolka.net>)
Список pgsql-general
"Ed L." <pgsql@bluepolka.net> writes:
> I noticed that ipcs on my linux box has a command-line option to list the
> pid that created the segment.  Not sure if such a library exists in usable
> form, but looking for segments owned by the downed postmaster's pid would
> seem to be what is needed.  Just a thought...

[ thinks about it... ]  Nah, it's still not bulletproof, because in a
system reboot situation you can't trust the old PID either.  It could
easy be that the other guy gets both the PID and the shmem ID that
belonged to you last time.

I've committed changes for 8.0 that mark a shmem segment with the inode
of the associated data directory; that should be a stable enough ID to
handle all routine-reboot cases.  (If you had to restore your whole
filesystem from backup tapes, it might be wrong, but you're going to be
doing such recovery manually anyway ...)

            regards, tom lane

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

Предыдущее
От: "Ed L."
Дата:
Сообщение: Re: server auto-restarts and ipcs
Следующее
От: David Wheeler
Дата:
Сообщение: ANNOUNCE: Bricolage 1.8.3